From b9b32baf1a8214813ab9dce05133406c3850ec19 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 15 Dec 2013 16:46:57 -0500 Subject: [PATCH] declval is in the std namespace, derp. --- sol/stack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol/stack.hpp b/sol/stack.hpp index 769f38b3..8d07774d 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -234,7 +234,7 @@ auto rtl_pop(lua_State* L, F&& f, types, Vs&&... vs) -> decltype(rtl_pop(L return rtl_pop(L, std::forward(f), types<>(), pop(L), std::forward(vs)...); } template -auto rtl_pop(lua_State* L, F&& f, types, types, Vs&&... vs) -> decltype(f(std::forward(declval())...)) { +auto rtl_pop(lua_State* L, F&& f, types, types, Vs&&... vs) -> decltype(f(std::forward(std::declval())...)) { return rtl_pop(L, std::forward(f), types(), pop(L), std::forward(vs)...); } } // detail