diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-27 21:02:30 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-27 21:02:30 +0100 |
commit | 990c365ebfb442eab6097bf643aad8106c95a396 (patch) | |
tree | a083ab7f1ec4f6465a53ea9f61bd9440209e88ca /libs/lua | |
parent | 68e81a6afc7dbbe4a02d90ac1b6294e8b3a83ad5 (diff) |
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)
Diffstat (limited to 'libs/lua')
-rw-r--r-- | libs/lua/LuaBridge/detail/Namespace.h | 4 |
1 files 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 <typename FuncTraits <MemFn>::Params, boost::weak_ptr<T> >, 0); + &weak. template ctorPlacementProxy <typename FuncTraits <MemFn>::Params, boost::weak_ptr<T> >, 0); rawsetfield(L, -2, "__call"); set_shared_class (); lua_pushcclosure (L, - &shared.ctorPlacementProxy <typename FuncTraits <MemFn>::Params, boost::shared_ptr<T> >, 0); + &shared. template ctorPlacementProxy <typename FuncTraits <MemFn>::Params, boost::shared_ptr<T> >, 0); rawsetfield(L, -2, "__call"); return *this; } |