diff --git a/include/boost/unordered/detail/allocator_helpers.hpp b/include/boost/unordered/detail/allocator_helpers.hpp index e770960e..c88c4021 100644 --- a/include/boost/unordered/detail/allocator_helpers.hpp +++ b/include/boost/unordered/detail/allocator_helpers.hpp @@ -26,6 +26,10 @@ #include #include +#if !defined(BOOST_UNORDERED_USE_ALLOCATOR_TRAITS) +#define BOOST_UNORDERED_USE_ALLOCATOR_TRAITS 0 +#endif + #if BOOST_UNORDERED_USE_ALLOCATOR_TRAITS # include #endif diff --git a/include/boost/unordered/detail/extract_key.hpp b/include/boost/unordered/detail/extract_key.hpp index 6cc4a23e..4ca13e8c 100644 --- a/include/boost/unordered/detail/extract_key.hpp +++ b/include/boost/unordered/detail/extract_key.hpp @@ -51,13 +51,6 @@ namespace detail { return v; } -#if BOOST_UNORDERED_USE_RV_REF - static key_type const& extract(BOOST_RV_REF(key_type) v) - { - return v; - } -#endif - static no_key extract() { return no_key(); @@ -69,7 +62,6 @@ namespace detail { { return no_key(); } - #else template static no_key extract(Arg const&) @@ -106,13 +98,6 @@ namespace detail { return v; } - // TODO: Why does this cause errors? - // - //static key_type const& extract(BOOST_RV_REF(key_type) v) - //{ - // return v; - //} - template static key_type const& extract(std::pair const& v) { diff --git a/test/unordered/Jamfile.v2 b/test/unordered/Jamfile.v2 index 51c94f48..4a785224 100644 --- a/test/unordered/Jamfile.v2 +++ b/test/unordered/Jamfile.v2 @@ -9,6 +9,8 @@ project unordered-test/unordered : requirements all intel:on + # Would be nice to define -Wundef, but I'm getting warnings from + # Boost.Preprocessor on trunk. gcc:"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wno-long-long" darwin:"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion" #gcc:_GLIBCXX_DEBUG