From 009a79606af22949a798d7168bde2b035933be71 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 13 Dec 2013 22:34:56 -0500 Subject: [PATCH] It has to be a reference, not a value. I mistakenly thought `typename Table` was taken by reference... oh well. It's fixed now. I wish VC++ didn't choke so badly on decltype. --- sol/table.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sol/table.hpp b/sol/table.hpp index 774700a1..dcc5a10b 100644 --- a/sol/table.hpp +++ b/sol/table.hpp @@ -82,13 +82,13 @@ public: } template - proxy operator[](T&& key) { - return proxy(*this, std::forward(key)); + proxy operator[](T&& key) { + return proxy(*this, std::forward(key)); } template - proxy operator[](T&& key) const { - return proxy(*this, std::forward(key)); + proxy operator[](T&& key) const { + return proxy(*this, std::forward(key)); } size_t size() const {