Fix bug when passing type with holder by value to Lua.v0.7.1
commit549cc9920bea341bfe07875ceba0a15fc62ac7b9
authorRodolfo Lima <rodolfo@rodsoft.org>
Thu, 9 Oct 2008 07:37:11 +0000 (9 09:37 +0200)
committerDaniel Wallin <daniel@boostpro.com>
Thu, 9 Oct 2008 13:03:01 +0000 (9 15:03 +0200)
tree74055d342b571bd9cf9ed85e637df65efbc91244
parent6966806b2ee6b890b90175de91c5ba05e084bad1
Fix bug when passing type with holder by value to Lua.

Correctly construct the holder object when converting an object to lua,
be it a const holder object (make it read-only in lua), a non-const
holder object or the held type, so that no matter what type the object
is, it's always managed by a holder object.
luabind/detail/class_rep.hpp
luabind/detail/policy.hpp
test/test_held_type.cpp