From bfcb42369131f087ab320c7383b6717858d61eb9 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Mon, 9 Aug 2004 19:43:13 +0000 Subject: [PATCH] *** empty log message *** --- test/test_operators.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/test_operators.cpp b/test/test_operators.cpp index 5c27739..262171a 100644 --- a/test/test_operators.cpp +++ b/test/test_operators.cpp @@ -91,6 +91,15 @@ namespace bool operator== ( const A &other ) const { return ( &other == this ); } }; + void not_using_namespace(lua_State* L) + { + luabind::module(L) + [ + luabind::class_("A") + .def(luabind::const_self == luabind::const_self) + ]; + } + } // anonymous namespace void test_operators() @@ -103,11 +112,10 @@ void test_operators() using namespace luabind; + not_using_namespace(L); + module(L) [ - luabind::class_< A >( "A" ) - .def( luabind::const_self == luabind::const_self ), - class_("operator_tester") .def(constructor<>()) .def(tostring(const_self)) -- 2.11.4.GIT