forked from boostorg/conversion
setbuf renamed to lcast_setbuf to get rid of virtual function override warning
[SVN r34984]
This commit is contained in:
@@ -335,7 +335,7 @@ namespace boost
|
|||||||
class lexical_streambuf : public std::basic_streambuf<CharT>
|
class lexical_streambuf : public std::basic_streambuf<CharT>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void setbuf(CharT* start, CharT* finish)
|
void lcast_setbuf(CharT* start, CharT* finish)
|
||||||
{
|
{
|
||||||
this->setg(start, start, finish);
|
this->setg(start, start, finish);
|
||||||
}
|
}
|
||||||
@@ -619,7 +619,7 @@ namespace boost
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
lexical_streambuf<CharT> sb;
|
lexical_streambuf<CharT> sb;
|
||||||
sb.setbuf(start, finish);
|
sb.lcast_setbuf(start, finish);
|
||||||
|
|
||||||
std::basic_istream<CharT> stream(&sb);
|
std::basic_istream<CharT> stream(&sb);
|
||||||
stream.unsetf(std::ios::skipws);
|
stream.unsetf(std::ios::skipws);
|
||||||
|
Reference in New Issue
Block a user