Add support for GCC 3.4

This commit is contained in:
Ion Gaztañaga
2015-10-12 16:29:38 +02:00
parent bba1782654
commit 11280a0e29
2 changed files with 8 additions and 8 deletions

View File

@@ -60,13 +60,13 @@ struct key_nodeptr_comp
//key_forward
template<class T>
typename enable_if<is_node_ptr<T>, const key_type &>::type
key_forward(const T &node) const
const key_type &key_forward
(const T &node, typename enable_if<is_node_ptr<T> >::type* =0) const
{ return key_of_value()(*traits_->to_value_ptr(node)); }
template<class T>
typename disable_if<is_node_ptr<T>, const T &>::type
const key_forward(const T &key) const
const T &key_forward
(const T &key, typename disable_if<is_node_ptr<T> >::type* =0) const
{ return key; }
//operator() 1 arg

View File

@@ -65,13 +65,13 @@ struct tree_value_compare
{};
template<class U>
typename boost::intrusive::detail::enable_if<is_key<U>, const key_type &>::type
key_forward(const U &key) const
const key_type & key_forward
(const U &key, typename boost::intrusive::detail::enable_if<is_key<U> >::type* = 0) const
{ return key; }
template<class U>
typename boost::intrusive::detail::disable_if<is_key<U>, const key_type &>::type
key_forward(const U &key) const
const key_type & key_forward
(const U &key, typename boost::intrusive::detail::disable_if<is_key<U> >::type* = 0) const
{ return KeyOfValue()(key); }
template<class KeyType, class KeyType2>