From 990c365ebfb442eab6097bf643aad8106c95a396 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 27 Feb 2016 21:02:30 +0100 Subject: [PATCH] ISO C++03 14.2/4 compatibility for clang. http://stackoverflow.com/questions/3786360/confusing-template-error (hopefully other compilers which didn't mind the missing "template" are still fine with this) --- libs/lua/LuaBridge/detail/Namespace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/lua/LuaBridge/detail/Namespace.h b/libs/lua/LuaBridge/detail/Namespace.h index eae70dd41e..af41b0a5a6 100644 --- a/libs/lua/LuaBridge/detail/Namespace.h +++ b/libs/lua/LuaBridge/detail/Namespace.h @@ -1054,12 +1054,12 @@ private: { set_weak_class (); lua_pushcclosure (L, - &weak.ctorPlacementProxy ::Params, boost::weak_ptr >, 0); + &weak. template ctorPlacementProxy ::Params, boost::weak_ptr >, 0); rawsetfield(L, -2, "__call"); set_shared_class (); lua_pushcclosure (L, - &shared.ctorPlacementProxy ::Params, boost::shared_ptr >, 0); + &shared. template ctorPlacementProxy ::Params, boost::shared_ptr >, 0); rawsetfield(L, -2, "__call"); return *this; }