From 6b5a58045652a2e99c6eb560324d3f6acbf867b5 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] --- test/limits_test.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/limits_test.cpp b/test/limits_test.cpp index b1d6e327..536a2c8b 100644 --- a/test/limits_test.cpp +++ b/test/limits_test.cpp @@ -27,11 +27,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 test_integral_limits(const T &, const char * msg)