Update of /cvsroot/luabind/luabind/luabind/test
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv4025/test
Modified Files:
test_has_get_pointer.cpp
Log Message:
fixed lookup problem with get_pointer on types deriving from boost types
Index: test_has_get_pointer.cpp
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/test/test_has_get_pointer.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test_has_get_pointer.cpp 28 Nov 2005 20:55:34 -0000 1.2
+++ test_has_get_pointer.cpp 11 Jul 2006 16:51:08 -0000 1.3
@@ -24,6 +24,7 @@
#include <boost/mpl/assert.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/get_pointer.hpp>
+#include <boost/enable_shared_from_this.hpp>
namespace lb = luabind::detail;
@@ -39,7 +40,9 @@
};
Y* get_pointer(Y const&);
-
+
+ struct Z : boost::enable_shared_from_this<Z> {};
+
} // namespace test
#ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
@@ -55,4 +58,5 @@
BOOST_MPL_ASSERT(( lb::has_get_pointer<char*> ));
BOOST_MPL_ASSERT_NOT(( lb::has_get_pointer<int> ));
BOOST_MPL_ASSERT_NOT(( lb::has_get_pointer<test::X> ));
+BOOST_MPL_ASSERT(( lb::has_get_pointer<test::Z*> ));
|