_M_extract(_ValueT& __v)
{
sentry __cerb(*this, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 118. basic_istream uses nonexistent num_get member functions.
sentry __cerb(*this, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 118. basic_istream uses nonexistent num_get member functions.
sentry __cerb(*this, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, false);
- if (__cerb && __sbout)
+ if (__sbout && static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb && __n > 0)
+ if (__n > 0 && static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb && __n > 0)
+ if (__n > 0 && static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
int_type __c = traits_type::eof();
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
// 60. What is a formatted input function?
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
// 60. What is a formatted input function?
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
// DR60. Do not change _M_gcount.
int __ret = -1;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
typedef typename __istream_type::int_type __int_type;
typename __istream_type::sentry __cerb(__in, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
streamsize __extracted = 0;
ios_base::iostate __err = ios_base::goodbit;
typename __istream_type::sentry __cerb(__in, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb && __n > 0)
+ if (__n > 0 && static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
- const char_type __cdelim = traits_type::to_char_type(__delim);
+ const char_type __cdelim = traits_type::to_char_type(__delim);
const int_type __eof = traits_type::eof();
__streambuf_type* __sb = this->rdbuf();
int_type __c = __sb->sgetc();
streamsize __extracted = 0;
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
__size_type __extracted = 0;
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, false);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
const __size_type __n = __str.max_size();
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__cerb && __n > 0)
+ if (__n > 0 && static_cast<bool>(__cerb))
{
ios_base::iostate __err = ios_base::goodbit;
__try
const __size_type __n = __str.max_size();
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, true);
- if (__cerb)
+ if (static_cast<bool>(__cerb))
{
__try
{