mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-04 06:54:32 +02:00
avoid C style casts
[SVN r53668]
This commit is contained in:
@@ -577,7 +577,7 @@ namespace boost
|
|||||||
lexical_stream(char_type* = 0, char_type* = 0)
|
lexical_stream(char_type* = 0, char_type* = 0)
|
||||||
{
|
{
|
||||||
stream.unsetf(std::ios::skipws);
|
stream.unsetf(std::ios::skipws);
|
||||||
lcast_set_precision(stream, (Source*)0, (Target*)0);
|
lcast_set_precision(stream, static_cast<Source*>(0), static_cast<Target*>(0) );
|
||||||
}
|
}
|
||||||
~lexical_stream()
|
~lexical_stream()
|
||||||
{
|
{
|
||||||
@@ -694,7 +694,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
this->setp(start, finish);
|
this->setp(start, finish);
|
||||||
std::basic_ostream<CharT> stream(static_cast<Base*>(this));
|
std::basic_ostream<CharT> stream(static_cast<Base*>(this));
|
||||||
lcast_set_precision(stream, (OutputStreamable*)0);
|
lcast_set_precision(stream, static_cast<OutputStreamable*>(0));
|
||||||
bool const result = !(stream << input).fail();
|
bool const result = !(stream << input).fail();
|
||||||
finish = this->pptr();
|
finish = this->pptr();
|
||||||
return result;
|
return result;
|
||||||
@@ -764,7 +764,7 @@ namespace boost
|
|||||||
this->setg(start, start, finish);
|
this->setg(start, start, finish);
|
||||||
std::basic_istream<CharT> stream(static_cast<Base*>(this));
|
std::basic_istream<CharT> stream(static_cast<Base*>(this));
|
||||||
stream.unsetf(std::ios::skipws);
|
stream.unsetf(std::ios::skipws);
|
||||||
lcast_set_precision(stream, (InputStreamable*)0);
|
lcast_set_precision(stream, static_cast<InputStreamable*>(0));
|
||||||
#if (defined _MSC_VER)
|
#if (defined _MSC_VER)
|
||||||
# pragma warning( pop )
|
# pragma warning( pop )
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user