From 41620a14f93489fe9e074433e41c676b774a3409 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 5 May 2002 11:00:28 +0000 Subject: [PATCH] Patched so that the code now compilers with VC6 [SVN r13669] --- integer_traits_test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)