From 4bec44b06cb3af18941a437a7d792f70210af1d7 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Mon, 9 Aug 2004 19:39:43 +0000 Subject: [PATCH] operator namespace fix --- luabind/operator.hpp | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/luabind/operator.hpp b/luabind/operator.hpp index 2af50eb..7b3eaa0 100755 --- a/luabind/operator.hpp +++ b/luabind/operator.hpp @@ -56,7 +56,7 @@ namespace luabind { namespace operators { #include -namespace luabind { namespace detail { +namespace luabind { template struct self_base @@ -92,6 +92,8 @@ namespace luabind { namespace detail { { }; +namespace detail { + template struct unwrap_parameter_type { @@ -207,7 +209,7 @@ namespace luabind { , U \ , T \ > \ - inline operator op(detail::self_base, T const&) \ + inline operator op(self_base, T const&) \ { \ return 0; \ } \ @@ -218,47 +220,47 @@ namespace luabind { , T \ , U \ > \ - inline operator op(T const&, detail::self_base) \ + inline operator op(T const&, self_base) \ { \ return 0; \ } \ \ detail::binary_operator< \ operators::name_ \ - , detail::self_type \ - , detail::self_type \ + , self_type \ + , self_type \ > \ - inline operator op(detail::self_type, detail::self_type) \ + inline operator op(self_type, self_type) \ { \ return 0; \ } \ \ detail::binary_operator< \ operators::name_ \ - , detail::self_type \ - , detail::const_self_type \ + , self_type \ + , const_self_type \ > \ - inline operator op(detail::self_type, detail::const_self_type) \ + inline operator op(self_type, const_self_type) \ { \ return 0; \ } \ \ detail::binary_operator< \ operators::name_ \ - , detail::const_self_type \ - , detail::self_type \ + , const_self_type \ + , self_type \ > \ - inline operator op(detail::const_self_type, detail::self_type) \ + inline operator op(const_self_type, self_type) \ { \ return 0; \ } \ \ detail::binary_operator< \ operators::name_ \ - , detail::const_self_type \ - , detail::const_self_type \ + , const_self_type \ + , const_self_type \ > \ - inline operator op(detail::const_self_type, detail::const_self_type) \ + inline operator op(const_self_type, const_self_type) \ { \ return 0; \ } @@ -301,7 +303,7 @@ namespace luabind { operators::name_ \ , T \ > \ - inline fn(detail::self_base) \ + inline fn(self_base) \ { \ return 0; \ } @@ -319,8 +321,8 @@ namespace luabind { namespace { - LUABIND_ANONYMOUS_FIX detail::self_type self; - LUABIND_ANONYMOUS_FIX detail::const_self_type const_self; + LUABIND_ANONYMOUS_FIX self_type self; + LUABIND_ANONYMOUS_FIX const_self_type const_self; } // namespace unnamed -- 2.11.4.GIT