+2009-09-04 Benjamin Kosnik <bkoz@redhat.com>
+
+ Revert.
+ 2009-08-06 Benjamin Kosnik <bkoz@redhat.com>
+ * src/compatibility.cc: Make C++0x safe, add in explicit casts to
+ bool for stream sentry objects.
+ * include/bits/istream.tcc: Same.
+ * include/bits/ostream.tcc: Same.
+ * include/bits/basic_string.tcc: Same.
+ * include/bits/ostream_insert.h: Same.
+ * src/istream.cc: Same.
+
2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Replace AC_CONFIG_COMMANDS([default])
2009-09-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_uninitialized.h
- (__uninitialized_copy::uninitialized_copy): Just call (the now
+ (__uninitialized_copy::uninitialized_copy): Just call (the now
forwarding) _Construct.
2009-09-01 Chris Jefferson <chris@bubblescope.net>
_M_extract(_ValueT& __v)
{
sentry __cerb(*this, false);
- if (static_cast<bool>(__cerb))
+ if (__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 (static_cast<bool>(__cerb))
+ if (__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 (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, false);
- if (__sbout && static_cast<bool>(__cerb))
+ if (__cerb && __sbout)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__n > 0 && static_cast<bool>(__cerb))
+ if (__cerb && __n > 0)
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__n > 0 && static_cast<bool>(__cerb))
+ if (__cerb && __n > 0)
{
ios_base::iostate __err = ios_base::goodbit;
__try
int_type __c = traits_type::eof();
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
// 60. What is a formatted input function?
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
// 60. What is a formatted input function?
_M_gcount = 0;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
// DR60. Do not change _M_gcount.
int __ret = -1;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__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 (static_cast<bool>(__cerb))
+ if (__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 (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__n > 0 && static_cast<bool>(__cerb))
+ if (__n > 0 && __cerb)
{
ios_base::iostate __err = ios_base::goodbit;
__try
streamsize __extracted = 0;
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, false);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
__size_type __extracted = 0;
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, false);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
const __size_type __n = __str.max_size();
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
ios_base::iostate __err = ios_base::goodbit;
sentry __cerb(*this, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{
_M_gcount = 0;
sentry __cerb(*this, true);
- if (__n > 0 && static_cast<bool>(__cerb))
+ if (__n > 0 && __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();
const __size_type __n = __str.max_size();
ios_base::iostate __err = ios_base::goodbit;
__istream_type::sentry __cerb(__in, true);
- if (static_cast<bool>(__cerb))
+ if (__cerb)
{
__try
{