[luabind-cvs] luabind/luabind/luabind handle.hpp,1.2,1.2.2.1
Brought to you by:
arvidn,
daniel_wallin
From: Arvid N. <ar...@us...> - 2005-12-30 00:04:51
|
Update of /cvsroot/luabind/luabind/luabind/luabind In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2291/luabind/luabind Modified Files: Tag: luabind_rc_0_7 handle.hpp Log Message: allowes uninitialized handles to be copied, added tests to verify and to make sure by-value and by-reference assignments works on complex types Index: handle.hpp =================================================================== RCS file: /cvsroot/luabind/luabind/luabind/luabind/handle.hpp,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -d -r1.2 -r1.2.2.1 --- handle.hpp 28 Nov 2005 20:55:34 -0000 1.2 +++ handle.hpp 30 Dec 2005 00:04:39 -0000 1.2.2.1 @@ -62,6 +62,7 @@ : m_interpreter(other.m_interpreter) , m_index(LUA_NOREF) { + if (m_interpreter == 0) return; detail::getref(m_interpreter, other.m_index); m_index = detail::ref(m_interpreter); } |