From: khizmax Date: Fri, 25 Dec 2015 05:23:29 +0000 (+0300) Subject: Fixed GCC incompatibility X-Git-Tag: v2.1.0~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33ef4dcb317de48ae9647f16cabde8bf716a1fd3;p=libcds.git Fixed GCC incompatibility --- diff --git a/tests/test-hdr/set/hdr_intrusive_striped_set.h b/tests/test-hdr/set/hdr_intrusive_striped_set.h index c0218f5a..870ceede 100644 --- a/tests/test-hdr/set/hdr_intrusive_striped_set.h +++ b/tests/test-hdr/set/hdr_intrusive_striped_set.h @@ -13,6 +13,24 @@ namespace set { namespace ci = cds::intrusive; namespace co = cds::opt; + template + struct get_int_key + { + int operator()( T const & v ) const + { + return v.key(); + } + }; + + template <> + struct get_int_key + { + int operator()( int i ) const + { + return i; + } + }; + // MichaelHashSet class IntrusiveStripedSetHdrTest: public CppUnitMini::TestCase { @@ -260,24 +278,6 @@ namespace set { } }; - template - struct get_int_key - { - int operator()( T const & v ) const - { - return v.key(); - } - }; - - template <> - struct get_int_key - { - int operator()( int i ) const - { - return i; - } - }; - struct less2 { template bool operator()( Item const& e, find_key const& k ) const