diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-11 10:30:43 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-11 10:30:43 +0000 |
| commit | e766c23de8aafbdce6f3497c0cadc0b6333946e3 (patch) | |
| tree | be0673180897842cf5edd597377fcb675d1ecf7b /libstdc++-v3/include | |
| parent | 37db34b1d053392f4d8899178a7f647bb70f400e (diff) | |
| download | gcc-e766c23de8aafbdce6f3497c0cadc0b6333946e3.tar.gz | |
2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/56282
Revert:
2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
PR libstdc++/56193
* include/bits/basic_ios.h: Replace operator void*() const
with explicit operator bool() const in C++11 and greater.
* testsuite/27_io/basic_ios/pr56193.cc: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195939 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
| -rw-r--r-- | libstdc++-v3/include/bits/basic_ios.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h index bda40f0a7a3..b78b464ba02 100644 --- a/libstdc++-v3/include/bits/basic_ios.h +++ b/libstdc++-v3/include/bits/basic_ios.h @@ -112,13 +112,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * This allows you to write constructs such as * <code>if (!a_stream) ...</code> and <code>while (a_stream) ...</code> */ -#if __cplusplus >= 201103L - explicit operator bool() const - { return !this->fail(); } -#else operator void*() const { return this->fail() ? 0 : const_cast<basic_ios*>(this); } -#endif bool operator!() const |
