|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85244 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2013-08-08 16:27:41
Author: danieljames
Date: 2013-08-08 16:27:40 EDT (Thu, 08 Aug 2013)
New Revision: 85244
URL: http://svn.boost.org/trac/boost/changeset/85244
Log:
Fix unused variable warning. Refs #8851.
Bit annoying that `boost::ignore_unused_variable_warning` is in
`<boost/concept_check.hpp>`.
Text files modified:
trunk/boost/unordered/detail/table.hpp | 2 ++
trunk/boost/unordered/detail/util.hpp | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/unordered/detail/table.hpp
==============================================================================
--- trunk/boost/unordered/detail/table.hpp Thu Aug 8 14:05:37 2013 (r85243)
+++ trunk/boost/unordered/detail/table.hpp 2013-08-08 16:27:40 EDT (Thu, 08 Aug 2013) (r85244)
@@ -456,6 +456,8 @@
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.
Modified: trunk/boost/unordered/detail/util.hpp
==============================================================================
--- trunk/boost/unordered/detail/util.hpp Thu Aug 8 14:05:37 2013 (r85243)
+++ trunk/boost/unordered/detail/util.hpp 2013-08-08 16:27:40 EDT (Thu, 08 Aug 2013) (r85244)
@@ -28,6 +28,8 @@
struct move_tag {};
struct empty_emplace {};
+ template <class T> inline void ignore_unused_variable_warning(T const&) {}
+
////////////////////////////////////////////////////////////////////////////
// iterator SFINAE
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk