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.

This commit is contained in:
ThePhD 2013-12-13 22:34:56 -05:00
parent 9624dd93e7
commit 009a79606a

View File

@ -82,13 +82,13 @@ public:
} }
template<typename T> template<typename T>
proxy<table, T> operator[](T&& key) { proxy<table&, T> operator[](T&& key) {
return proxy<table, T>(*this, std::forward<T>(key)); return proxy<table&, T>(*this, std::forward<T>(key));
} }
template<typename T> template<typename T>
proxy<const table, T> operator[](T&& key) const { proxy<const table&, T> operator[](T&& key) const {
return proxy<const table, T>(*this, std::forward<T>(key)); return proxy<const table&, T>(*this, std::forward<T>(key));
} }
size_t size() const { size_t size() const {