[oolua] [ANN] Branch with shared_ptr support

  • From: "Liam Devine" <liamdevine@xxxxxxxxx>
  • To: oolua <oolua@xxxxxxxxxxxxx>
  • Date: Wed, 06 Nov 2013 22:13:28 -0000


One of the remaining requests that have had been made for the library is support for shared_ptr. I have looked at supporting this before and hit a few problems, but after posting to lua-l the other day[1] I decided to have a look again.

There is now a branch[2] on bitbucket which has the latest changes from OOLua 2 beta and also supports pushing and pulling from the stack with a shared_ptr to a proxy type; in addition function returns and parameters with default traits.

As it currently stands I have only tested this with g++ and have not profiled or optimised it. If people could have a play with it and see if there is anything missing, bug reports or comments I would appreciate it. Please note that it is currently using std::tr1::shared_ptr but you can change that in the config file[3].

[1] http://thread.gmane.org/gmane.comp.lang.lua.general/103994/focus=103996

[2] https://bitbucket.org/liamdevine/oolua/branch/shared_ptr
To clone this branch run :
hg clone https://bitbucket.org/liamdevine/oolua
hg pull && hg update shared_ptr

[3]https://bitbucket.org/liamdevine/oolua/src/c467dae1f249996fe0832d73b7dff37c811c0a91/include/oolua_config.h?at=shared_ptr#cl-212

Thanks
--
Liam

Other related posts: