mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-04 06:54:32 +02:00
avoid C style casts
[SVN r53670]
This commit is contained in:
@@ -173,8 +173,8 @@ inline void lcast_set_precision(std::ios_base& stream, T*)
|
|||||||
template<class Source, class Target>
|
template<class Source, class Target>
|
||||||
inline void lcast_set_precision(std::ios_base& stream, Source*, Target*)
|
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(static_cast<Source*>(0));
|
||||||
std::streamsize const t = lcast_get_precision((Target*)0);
|
std::streamsize const t = lcast_get_precision(static_cast<Target*>(0));
|
||||||
stream.precision(s > t ? s : t);
|
stream.precision(s > t ? s : t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user