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 //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

View File

@@ -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>