From fb8df0c5aac87f7c0705444140c69d8d602b5e9a Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Fri, 15 Apr 2005 16:50:18 +0000 Subject: [PATCH] *** empty log message *** --- luabind/detail/policy.hpp | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/luabind/detail/policy.hpp b/luabind/detail/policy.hpp index 4c8492d..4aaf4bd 100644 --- a/luabind/detail/policy.hpp +++ b/luabind/detail/policy.hpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -452,37 +453,43 @@ namespace luabind { namespace detail template T apply(lua_State* L, detail::by_value, int index) { - return converters::convert_lua_to_cpp(L, detail::by_value(), index); + using namespace converters; + return convert_lua_to_cpp(L, detail::by_value(), index); } template T apply(lua_State* L, detail::by_reference, int index) { - return converters::convert_lua_to_cpp(L, detail::by_reference(), index); + using namespace converters; + return convert_lua_to_cpp(L, detail::by_reference(), index); } template T apply(lua_State* L, detail::by_const_reference, int index) { - return converters::convert_lua_to_cpp(L, detail::by_const_reference(), index); + using namespace converters; + return convert_lua_to_cpp(L, detail::by_const_reference(), index); } template T* apply(lua_State* L, detail::by_pointer, int index) { - return converters::convert_lua_to_cpp(L, detail::by_pointer(), index); + using namespace converters; + return convert_lua_to_cpp(L, detail::by_pointer(), index); } template const T* apply(lua_State* L, detail::by_const_pointer, int index) { - return converters::convert_lua_to_cpp(L, detail::by_pointer(), index); + using namespace converters; + return convert_lua_to_cpp(L, detail::by_pointer(), index); } template static int match(lua_State* L, T, int index) { - return converters::match_lua_to_cpp(L, T(), index); + using namespace converters; + return match_lua_to_cpp(L, T(), index); } template @@ -496,8 +503,9 @@ namespace luabind { namespace detail template void apply(lua_State* L, const T& v) - { - converters::convert_cpp_to_lua(L, v); + { + using namespace converters; + convert_cpp_to_lua(L, v); } }; @@ -1110,8 +1118,7 @@ namespace luabind { namespace detail template struct generate_converter - { - typedef typename eval_if< + : eval_if< is_user_defined , user_defined_converter , eval_if< @@ -1143,7 +1150,8 @@ namespace luabind { namespace detail > > > - >::type type; + > + { }; }; -- 2.11.4.GIT