mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 05:54:28 +02:00
Minimize ifdef-ed code for BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN
This commit is contained in:
@@ -412,16 +412,13 @@ struct key_node_compare
|
||||
key_forward(const T &node) const
|
||||
{ return node.get_data(); }
|
||||
|
||||
template<class T>
|
||||
#if defined(BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN)
|
||||
template<class T>
|
||||
const T &key_forward(const T &key, typename enable_if_c<!is_node<T>::value>::type* =0) const
|
||||
{ return key; }
|
||||
#else
|
||||
template<class T>
|
||||
typename enable_if_c<!is_node<T>::value, const T &>::type
|
||||
key_forward(const T &key) const
|
||||
{ return key; }
|
||||
typename enable_if_c<!is_node<T>::value, const T &>::type key_forward(const T &key) const
|
||||
#endif
|
||||
{ return key; }
|
||||
|
||||
template<class KeyType, class KeyType2>
|
||||
bool operator()(const KeyType &key1, const KeyType2 &key2) const
|
||||
|
Reference in New Issue
Block a user