mirror of
https://github.com/boostorg/unordered.git
synced 2026-05-05 12:14:18 +02:00
Import latest changes to the unordered containers. Includes:
Copyright update. Switch back to the version where the sentinel points to itself. Remove alternative versions of swap. Workaround a borland bug or two. More consistent use of class/swap/template. Avoid a few warnings. Add a no-throw swap to the allocator for exception testing. [SVN r3793]
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
// Copyright 2006 Daniel James.
|
||||
// Copyright 2006-2007 Daniel James.
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
@@ -661,6 +661,11 @@ namespace exception
|
||||
}
|
||||
return (std::numeric_limits<std::size_t>::max)();
|
||||
}
|
||||
|
||||
friend void swap(allocator<T>& x, allocator<T>& y)
|
||||
{
|
||||
std::swap(x.tag_, y.tag_);
|
||||
}
|
||||
};
|
||||
|
||||
// It's pretty much impossible to write a compliant swap when these
|
||||
|
||||
Reference in New Issue
Block a user