From 05dcba2fac5df6555dcd522e4f625b09def340bb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 25 Jun 2014 17:07:21 -0400 Subject: [PATCH] Fix compiler error with clang --- sol/proxy.hpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/sol/proxy.hpp b/sol/proxy.hpp index b30e558d..be915444 100644 --- a/sol/proxy.hpp +++ b/sol/proxy.hpp @@ -36,13 +36,11 @@ private: public: template - proxy(Table& table, T&& key) : tbl(table), key(std::forward(key)) { - - } + proxy(Table& table, T&& key) : tbl(table), key(std::forward(key)) {} template T get() const { - return tbl.get(key); + return tbl.template get(key); } template @@ -105,30 +103,29 @@ public: template typename return_type::type call(Args&&... args) { - return tbl.get(key)(types(), std::forward(args)...); + return tbl.template get(key)(types(), std::forward(args)...); } }; template -inline bool operator== (T&& left, const proxy& right) { +inline bool operator==(T&& left, const proxy& right) { return left == right.template get>(); } template -inline bool operator== (const proxy& right, T&& left) { +inline bool operator==(const proxy& right, T&& left) { return right.template get>() == left; } template -inline bool operator!= (T&& left, const proxy& right) { +inline bool operator!=(T&& left, const proxy& right) { return right.template get>() != left; } template -inline bool operator!= (const proxy& right, T&& left) { +inline bool operator!=(const proxy& right, T&& left) { return right.template get>() != left; } - } // sol #endif // SOL_PROXY_HPP