diff --git a/integer_traits_test.cpp b/integer_traits_test.cpp index ea8adaf..6384156 100644 --- a/integer_traits_test.cpp +++ b/integer_traits_test.cpp @@ -35,10 +35,20 @@ * Therefore, avoid explicit function template instantiations. */ +#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1200) +template inline T make_char_numeric_for_streaming(T x) { return x; } +namespace fix{ +inline int make_char_numeric_for_streaming(char c) { return c; } +inline int make_char_numeric_for_streaming(signed char c) { return c; } +inline int make_char_numeric_for_streaming(unsigned char c) { return c; } +} +using namespace fix; +#else template inline T make_char_numeric_for_streaming(T x) { return x; } inline int make_char_numeric_for_streaming(char c) { return c; } inline int make_char_numeric_for_streaming(signed char c) { return c; } inline int make_char_numeric_for_streaming(unsigned char c) { return c; } +#endif template void runtest(const char * type, T)