From de26efa6ead00bb40292991f77c163c4c2ca00a2 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Wed, 26 Mar 2014 12:41:20 -0700 Subject: [PATCH] added mol print functionally for Clang compiler --- include/boost/mpl/print.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/mpl/print.hpp b/include/boost/mpl/print.hpp index 4281822d8..e3b0d315a 100644 --- a/include/boost/mpl/print.hpp +++ b/include/boost/mpl/print.hpp @@ -37,8 +37,7 @@ namespace aux { static const unsigned value = 1; }; #endif -} // namespace aux - +} // namespace aux template struct print @@ -47,7 +46,9 @@ struct print , aux::print_base #endif { -#if defined(BOOST_MSVC) +#if defined(__clang__) + const int m_x = 1 / (sizeof(T) - sizeof(T)); +#elif defined(BOOST_MSVC) enum { n = sizeof(T) + -1 }; #elif defined(__MWERKS__) void f(int);