Patched so that the code now compilers with VC6

[SVN r13669]
This commit is contained in:
John Maddock
2002-05-05 11:00:28 +00:00
parent 33badb1465
commit 6b5a580456

View File

@ -27,11 +27,20 @@
* *
* Therefore, avoid explicit function template instantiations. * Therefore, avoid explicit function template instantiations.
*/ */
#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1200)
template<typename T> 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<typename T> inline T make_char_numeric_for_streaming(T x) { return x; } template<typename T> 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(char c) { return c; }
inline int make_char_numeric_for_streaming(signed 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; } inline int make_char_numeric_for_streaming(unsigned char c) { return c; }
#endif
template<class T> template<class T>
void test_integral_limits(const T &, const char * msg) void test_integral_limits(const T &, const char * msg)