mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 22:44:43 +02:00
Add support for GCC 3.4
This commit is contained in:
@@ -60,13 +60,13 @@ struct key_nodeptr_comp
|
|||||||
|
|
||||||
//key_forward
|
//key_forward
|
||||||
template<class T>
|
template<class T>
|
||||||
typename enable_if<is_node_ptr<T>, const key_type &>::type
|
const key_type &key_forward
|
||||||
key_forward(const T &node) const
|
(const T &node, typename enable_if<is_node_ptr<T> >::type* =0) const
|
||||||
{ return key_of_value()(*traits_->to_value_ptr(node)); }
|
{ return key_of_value()(*traits_->to_value_ptr(node)); }
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
typename disable_if<is_node_ptr<T>, const T &>::type
|
const T &key_forward
|
||||||
const key_forward(const T &key) const
|
(const T &key, typename disable_if<is_node_ptr<T> >::type* =0) const
|
||||||
{ return key; }
|
{ return key; }
|
||||||
|
|
||||||
//operator() 1 arg
|
//operator() 1 arg
|
||||||
|
@@ -65,13 +65,13 @@ struct tree_value_compare
|
|||||||
{};
|
{};
|
||||||
|
|
||||||
template<class U>
|
template<class U>
|
||||||
typename boost::intrusive::detail::enable_if<is_key<U>, const key_type &>::type
|
const key_type & key_forward
|
||||||
key_forward(const U &key) const
|
(const U &key, typename boost::intrusive::detail::enable_if<is_key<U> >::type* = 0) const
|
||||||
{ return key; }
|
{ return key; }
|
||||||
|
|
||||||
template<class U>
|
template<class U>
|
||||||
typename boost::intrusive::detail::disable_if<is_key<U>, const key_type &>::type
|
const key_type & key_forward
|
||||||
key_forward(const U &key) const
|
(const U &key, typename boost::intrusive::detail::disable_if<is_key<U> >::type* = 0) const
|
||||||
{ return KeyOfValue()(key); }
|
{ return KeyOfValue()(key); }
|
||||||
|
|
||||||
template<class KeyType, class KeyType2>
|
template<class KeyType, class KeyType2>
|
||||||
|
Reference in New Issue
Block a user