Unordered: Add option to use old equality implementation for backwards compatability.

[SVN r74180]
This commit is contained in:
Daniel James committed 2011-08-31 22:23:01 +00:00
1 parent 659b6fe8ba
commit fd1aec2998
4 files changed
+208 -2

No files matched your search

@@ -60,8 +60,15 @@ namespace boost { namespace unordered { namespace detail {
n1; n1 = n1->next_)
{
node_ptr n2 = other.find_matching_node(n1);
#if !defined(BOOST_UNORDERED_DEPRECATED_EQUALITY)
if(!n2 || node::get_value(n1) != node::get_value(n2))
return false;
#else
if(!n2 || !extractor::compare_mapped(
node::get_value(n1), node::get_value(n2)))
return false;
#endif
}
return true;