Presumably fix Boost.Test failures on Sun CC 5.3 (reported by Gennadiy Rozental)

[SVN r36464]
This commit is contained in:
Alexander Nasonov
2006-12-20 08:01:48 +00:00
parent de6746d67a
commit fcc28133c5

View File

@@ -135,13 +135,13 @@ inline std::streamsize lcast_get_precision(T* = 0)
} }
template<class T> template<class T>
inline void lcast_set_precision(std::ios_base& stream, T* = 0) inline void lcast_set_precision(std::ios_base& stream, T*)
{ {
stream.precision(lcast_get_precision<T>()); stream.precision(lcast_get_precision<T>());
} }
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*, Target*)
{ {
std::streamsize const s = lcast_get_precision((Source*)0); std::streamsize const s = lcast_get_precision((Source*)0);
std::streamsize const t = lcast_get_precision((Target*)0); std::streamsize const t = lcast_get_precision((Target*)0);