Strangely enough, GCC can't handle having T_ as a typdef.

This commit is contained in:
ThePhD 2013-12-21 19:44:31 -05:00
parent 7ca6ce8d55
commit 4f279c5033

View File

@ -104,26 +104,26 @@ public:
template <typename Table, typename Key, typename T>
bool operator== ( T&& left, const proxy<Table, Key>& right ) {
typedef Decay<T> T_;
return right.get<T_>( ) == left;
typedef Decay<T> TDk;
return right.get<TDk>( ) == left;
}
template <typename Table, typename Key, typename T>
bool operator== ( const proxy<Table, Key>& right, T&& left ) {
typedef Decay<T> T_;
return right.get<T_>( ) == left;
typedef Decay<T> TDk;
return right.get<TDk>( ) == left;
}
template <typename Table, typename Key, typename T>
bool operator!= ( T&& left, const proxy<Table, Key>& right ) {
typedef Decay<T> T_;
return right.get<T_>( ) != left;
typedef Decay<T> TDk;
return right.get<TDk>( ) != left;
}
template <typename Table, typename Key, typename T>
bool operator!= ( const proxy<Table, Key>& right, T&& left ) {
typedef Decay<T> T_;
return right.get<T_>( ) != left;
typedef Decay<T> TDk;
return right.get<TDk>( ) != left;
}
} // sol