One more VC6 workaround.

[SVN r35747]
This commit is contained in:
Alexander Nasonov
2006-10-25 21:08:50 +00:00
parent 663635d124
commit 0f46451c1d

View File

@@ -74,7 +74,7 @@ struct lcast_precision
#endif #endif
template<class T> template<class T>
inline std::streamsize lcast_get_precision() inline std::streamsize lcast_get_precision(T* = 0)
{ {
#if !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) #if !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS)
return lcast_precision<T>::value; return lcast_precision<T>::value;
@@ -143,8 +143,8 @@ inline void lcast_set_precision(std::ios_base& stream, T* = 0)
template<class Source, class Target> template<class Source, class Target>
inline void lcast_set_precision(std::ios_base& stream, Source* = 0, Target* = 0) inline void lcast_set_precision(std::ios_base& stream, Source* = 0, Target* = 0)
{ {
std::streamsize const s = lcast_get_precision<Source>(); std::streamsize const s = lcast_get_precision((Source*)0);
std::streamsize const t = lcast_get_precision<Target>(); std::streamsize const t = lcast_get_precision((Target*)0);
stream.precision(s > t ? s : t); stream.precision(s > t ? s : t);
} }