On Jun 20, 2006, at 20:44, Alexander Gladysh wrote:
> Say, I have a raw lua_State *, and I need to push some reference to
> object of Luabind-registered type there. Am I right that now I have to
> do as follows?
> luabind::object luaobj(L, boost::cref(my_reference));
> Looks like luabind::object constructor already pushes wrapper to my
> reference to the state. Can I tell it not to pop?
Well, the abstraction level of luabind kindof expects you to store it
as a luabind object. The functions used internally in luabind to push
an object have been placed in the luabind::detail namespace. If you
want to use them, you'll find it at the top of object.hpp.