mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-04 15:04:32 +02:00
VC6 workaround
[SVN r35738]
This commit is contained in:
@@ -20,10 +20,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#endif
|
#endif
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
# include <boost/type_traits/is_same.hpp>
|
|
||||||
# include <boost/mpl/bool.hpp>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost { namespace detail {
|
namespace boost { namespace detail {
|
||||||
|
|
||||||
@@ -139,21 +135,13 @@ inline std::streamsize lcast_get_precision()
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
inline void lcast_set_precision(std::ios_base& stream
|
inline void lcast_set_precision(std::ios_base& stream, T* = 0)
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
, short = 0
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
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
|
inline void lcast_set_precision(std::ios_base& stream, Source* = 0, Target* = 0)
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
, long = 0
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
std::streamsize const s = lcast_get_precision<Source>();
|
std::streamsize const s = lcast_get_precision<Source>();
|
||||||
std::streamsize const t = lcast_get_precision<Target>();
|
std::streamsize const t = lcast_get_precision<Target>();
|
||||||
|
Reference in New Issue
Block a user