Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

container_policy bug? smart pointer casts. #21

Open decimad opened 11 years ago

decimad commented 11 years ago

Hello, is there still something going on here? I mentioned a bug in the container_converter-policy over at Ryan's repository. Also I'd like to discuss the option whether adding custom casts to the cast graph wouldn't maybe be preferrable to the deleter hacks that fail one way or another, regarding the smart pointer cast problem. That would mean to use boost::any or an equivalent to pass the value type through, however we know such situations beforehands, so there can be a special branch covering smart pointers only, I think.

Seem to be busy times everywhere run off

decimad commented 11 years ago

There's an even much (much!) better way for the pointer casts, I didn't read up all the different constructor overloads that recent smart pointers support. Will implement and check back with results.