forked from boostorg/unordered
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:
@ -456,6 +456,8 @@ namespace boost { namespace unordered { namespace detail {
|
|||||||
|
|
||||||
void swap_allocators(table& other, false_type)
|
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
|
// According to 23.2.1.8, if propagate_on_container_swap is
|
||||||
// false the behaviour is undefined unless the allocators
|
// false the behaviour is undefined unless the allocators
|
||||||
// are equal.
|
// are equal.
|
||||||
|
@ -28,6 +28,8 @@ namespace boost { namespace unordered { namespace detail {
|
|||||||
struct move_tag {};
|
struct move_tag {};
|
||||||
struct empty_emplace {};
|
struct empty_emplace {};
|
||||||
|
|
||||||
|
template <class T> inline void ignore_unused_variable_warning(T const&) {}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
// iterator SFINAE
|
// iterator SFINAE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user