mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Trying to guess what GCC wants in this case is baffling...
This commit is contained in:
parent
4f279c5033
commit
cfda1d34ba
|
@ -104,26 +104,22 @@ public:
|
|||
|
||||
template <typename Table, typename Key, typename T>
|
||||
bool operator== ( T&& left, const proxy<Table, Key>& right ) {
|
||||
typedef Decay<T> TDk;
|
||||
return right.get<TDk>( ) == left;
|
||||
return right.get<Decay<T>>( ) == left;
|
||||
}
|
||||
|
||||
template <typename Table, typename Key, typename T>
|
||||
bool operator== ( const proxy<Table, Key>& right, T&& left ) {
|
||||
typedef Decay<T> TDk;
|
||||
return right.get<TDk>( ) == left;
|
||||
return right.get<Decay<T>>( ) == left;
|
||||
}
|
||||
|
||||
template <typename Table, typename Key, typename T>
|
||||
bool operator!= ( T&& left, const proxy<Table, Key>& right ) {
|
||||
typedef Decay<T> TDk;
|
||||
return right.get<TDk>( ) != left;
|
||||
return right.get<Decay<T>>( ) != left;
|
||||
}
|
||||
|
||||
template <typename Table, typename Key, typename T>
|
||||
bool operator!= ( const proxy<Table, Key>& right, T&& left ) {
|
||||
typedef Decay<T> TDk;
|
||||
return right.get<TDk>( ) != left;
|
||||
return right.get<Decay<T>>( ) != left;
|
||||
}
|
||||
|
||||
} // sol
|
Loading…
Reference in New Issue
Block a user