Fix unused variable warning. Refs #8851.

Bit annoying that `boost::ignore_unused_variable_warning` is in
`<boost/concept_check.hpp>`.

[SVN r85244]
This commit is contained in:
Daniel James
2013-08-08 20:27:40 +00:00
parent e6a6fe92d7
commit 52b42b4e48
2 changed files with 4 additions and 0 deletions

View File

@ -456,6 +456,8 @@ namespace boost { namespace unordered { namespace detail {
void swap_allocators(table& other, false_type)
{
boost::unordered::detail::ignore_unused_variable_warning(other);
// According to 23.2.1.8, if propagate_on_container_swap is
// false the behaviour is undefined unless the allocators
// are equal.

View File

@ -28,6 +28,8 @@ namespace boost { namespace unordered { namespace detail {
struct move_tag {};
struct empty_emplace {};
template <class T> inline void ignore_unused_variable_warning(T const&) {}
////////////////////////////////////////////////////////////////////////////
// iterator SFINAE