mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Strangely enough, GCC can't handle having T_
as a typdef.
This commit is contained in:
parent
7ca6ce8d55
commit
4f279c5033
|
@ -104,26 +104,26 @@ public:
|
||||||
|
|
||||||
template <typename Table, typename Key, typename T>
|
template <typename Table, typename Key, typename T>
|
||||||
bool operator== ( T&& left, const proxy<Table, Key>& right ) {
|
bool operator== ( T&& left, const proxy<Table, Key>& right ) {
|
||||||
typedef Decay<T> T_;
|
typedef Decay<T> TDk;
|
||||||
return right.get<T_>( ) == left;
|
return right.get<TDk>( ) == left;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Table, typename Key, typename T>
|
template <typename Table, typename Key, typename T>
|
||||||
bool operator== ( const proxy<Table, Key>& right, T&& left ) {
|
bool operator== ( const proxy<Table, Key>& right, T&& left ) {
|
||||||
typedef Decay<T> T_;
|
typedef Decay<T> TDk;
|
||||||
return right.get<T_>( ) == left;
|
return right.get<TDk>( ) == left;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Table, typename Key, typename T>
|
template <typename Table, typename Key, typename T>
|
||||||
bool operator!= ( T&& left, const proxy<Table, Key>& right ) {
|
bool operator!= ( T&& left, const proxy<Table, Key>& right ) {
|
||||||
typedef Decay<T> T_;
|
typedef Decay<T> TDk;
|
||||||
return right.get<T_>( ) != left;
|
return right.get<TDk>( ) != left;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Table, typename Key, typename T>
|
template <typename Table, typename Key, typename T>
|
||||||
bool operator!= ( const proxy<Table, Key>& right, T&& left ) {
|
bool operator!= ( const proxy<Table, Key>& right, T&& left ) {
|
||||||
typedef Decay<T> T_;
|
typedef Decay<T> TDk;
|
||||||
return right.get<T_>( ) != left;
|
return right.get<TDk>( ) != left;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // sol
|
} // sol
|
Loading…
Reference in New Issue
Block a user