Skip to content

Commit

Permalink
Merge pull request #4 from robertramey/develop
Browse files Browse the repository at this point in the history
added mol print functionally for Clang compiler
  • Loading branch information
mclow committed Mar 27, 2014
2 parents db7e720 + de26efa commit cafafaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/boost/mpl/print.hpp
Expand Up @@ -37,8 +37,7 @@ namespace aux {
static const unsigned value = 1;
};
#endif
} // namespace aux

} // namespace aux

template <class T>
struct print
Expand All @@ -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));

This comment has been minimized.

Copy link
@jfalcou

jfalcou Jun 20, 2014

Contributor

Should'nt it be static const ? clang 3.4 warns noisily about the fact assigning to non static const is C++11 only.

#elif defined(BOOST_MSVC)
enum { n = sizeof(T) + -1 };
#elif defined(__MWERKS__)
void f(int);
Expand Down

0 comments on commit cafafaf

Please sign in to comment.