diff options
Diffstat (limited to 'boost/accumulators/accumulators_fwd.hpp')
-rw-r--r-- | boost/accumulators/accumulators_fwd.hpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/boost/accumulators/accumulators_fwd.hpp b/boost/accumulators/accumulators_fwd.hpp index 9986a537b1..4c0370e21e 100644 --- a/boost/accumulators/accumulators_fwd.hpp +++ b/boost/accumulators/accumulators_fwd.hpp @@ -11,6 +11,7 @@ #include <boost/config.hpp> #include <boost/mpl/apply_fwd.hpp> // for mpl::na #include <boost/mpl/limits/vector.hpp> +#include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/arithmetic/inc.hpp> #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp> #include <boost/preprocessor/repetition/enum_trailing_params.hpp> @@ -185,8 +186,18 @@ namespace detail 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 |