mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-03 14:34:33 +02:00
Merge some detail changes.
- [53670] Avoid C style casts. - [55604] Fix #3346 boost/detail/scoped_enum_emulation.hpp enum_t conflict with Unix rpc/types.h - Don't foward declare containers when using gcc's parallel library and add a macro to disable forward declaration. Fixes #3866. [SVN r59679]
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