added mol print functionally for Clang compiler

This commit is contained in:
Robert Ramey
2014-03-26 12:41:20 -07:00
parent db7e720ce1
commit de26efa6ea

View File

@@ -37,8 +37,7 @@ namespace aux {
static const unsigned value = 1; static const unsigned value = 1;
}; };
#endif #endif
} // namespace aux } // namespace aux
template <class T> template <class T>
struct print struct print
@@ -47,7 +46,9 @@ struct print
, aux::print_base , aux::print_base
#endif #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 }; enum { n = sizeof(T) + -1 };
#elif defined(__MWERKS__) #elif defined(__MWERKS__)
void f(int); void f(int);