|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83392 - trunk/boost/accumulators
From: eric_at_[hidden]
Date: 2013-03-09 20:16:02
Author: eric_niebler
Date: 2013-03-09 20:16:00 EST (Sat, 09 Mar 2013)
New Revision: 83392
URL: http://svn.boost.org/trac/boost/changeset/83392
Log:
another attempt at silencing unused variable warnings, refs #6926
Text files modified:
trunk/boost/accumulators/accumulators_fwd.hpp | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
Modified: trunk/boost/accumulators/accumulators_fwd.hpp
==============================================================================
--- trunk/boost/accumulators/accumulators_fwd.hpp (original)
+++ trunk/boost/accumulators/accumulators_fwd.hpp 2013-03-09 20:16:00 EST (Sat, 09 Mar 2013)
@@ -185,8 +185,18 @@
inline void ignore_variable(void const *) {}
- #define BOOST_ACCUMULATORS_IGNORE_GLOBAL(X)\
- namespace detail { inline void BOOST_PP_CAT(ignore_, X)() { boost::accumulators::detail::ignore_variable(&X); } }
+#define BOOST_ACCUMULATORS_IGNORE_GLOBAL(X) \
+ namespace detail \
+ { \
+ struct BOOST_PP_CAT(ignore_, X) \
+ { \
+ void ignore() \
+ { \
+ boost::accumulators::detail::ignore_variable(&X); \
+ } \
+ }; \
+ } \
+ /**/
}
}} // namespace boost::accumulators
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