diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-23 16:16:41 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-23 16:16:41 +0000 |
| commit | d0ff4e646322cf50ab9f0c32d7a83876795eb584 (patch) | |
| tree | 052c96d0ba7b75a0ffafb1f29e3a27f720931357 /libstdc++-v3/include/std/ostream | |
| parent | fb80456a6cabd7069949b5176aa7f2b5f5556e59 (diff) | |
| download | ppe42-gcc-d0ff4e646322cf50ab9f0c32d7a83876795eb584.tar.gz ppe42-gcc-d0ff4e646322cf50ab9f0c32d7a83876795eb584.zip | |
2007-08-23 Benjamin Kosnik <bkoz@redhat.com>
* include/std/system_error: New file.
* src/system_error.cc: New file.
* src/Makefile.am (sources): Add.
* src/Makefile.in: Regenerate.
* include/Makefile.am (std_headers): Add system_error.
* include/Makefile.in: Regenerate.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): New.
* configure.ac: Call it.
* config.h.in: Regenerate.
* include/bits/functional_hash.h: Add hash<error_code>.
* include/std/ostream: Add inserters for error_code.
* docs/doxygen/user.cfg.in: Add system_error.
* config/abi/pre/gnu.ver(GLIBCXX_3.4.10): Add new symbols.
* testsuite/19_diagnostics/error_code: New.
* testsuite/19_diagnostics/error_code/cons: Same.
* testsuite/19_diagnostics/error_code/cons/1.cc: Same.
* testsuite/19_diagnostics/error_code/operators: Same.
* testsuite/19_diagnostics/error_code/operators/bool.cc: Same.
* testsuite/19_diagnostics/error_code/operators/bool_neg.cc: Same.
* testsuite/19_diagnostics/error_code/operators/equal.cc: Same.
* testsuite/19_diagnostics/error_code/operators/not_equal.cc: Same.
* testsuite/19_diagnostics/error_category: Same.
* testsuite/19_diagnostics/error_category/cons: Same.
* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Same.
* testsuite/19_diagnostics/error_category/cons/default.cc: Same.
* testsuite/19_diagnostics/error_category/operators: Same.
* testsuite/19_diagnostics/error_category/operators/equal.cc: Same.
* testsuite/19_diagnostics/error_category/operators/not_equal.cc: Same.
* testsuite/19_diagnostics/headers/system_error: Same.
* testsuite/19_diagnostics/headers/system_error/
types_std_c++0x.cc: Same.
* testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Same.
* testsuite/19_diagnostics/system_error: Same.
* testsuite/19_diagnostics/system_error/
cons_virtual_derivation.cc: Same.
* testsuite/19_diagnostics/system_error/cons-1.cc: Same.
* testsuite/19_diagnostics/system_error/what-1.cc: Same.
* testsuite/19_diagnostics/system_error/what-2.cc: Same.
* testsuite/19_diagnostics/system_error/what-big.cc: Same.
* testsuite/19_diagnostics/system_error/what-3.cc: Same.
* testsuite/19_diagnostics/system_error/what-4.cc: Same.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/
error_code.cc: Same.
* testsuite/27_io/basic_ostream/inserters_other/char/
error_code.cc: Same.
* testsuite/tr1/6_containers/hash/operators: New.
* testsuite/tr1/6_containers/hash/operators/size_t.cc: Same.
* testsuite/23_containers/hash: Move...
* testsuite/20_util/hash: ... here.
* testsuite/20_util/hash/operators: New.
* testsuite/20_util/hash/operators/size_t.cc: New.
* testsuite/20_util/function_objects/bad_function_call: Move...
* testsuite/20_util/bad_function_call: ...here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/ostream')
| -rw-r--r-- | libstdc++-v3/include/std/ostream | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/ostream b/libstdc++-v3/include/std/ostream index 2287756513c..67dcc555cff 100644 --- a/libstdc++-v3/include/std/ostream +++ b/libstdc++-v3/include/std/ostream @@ -45,6 +45,10 @@ #include <ios> #include <bits/ostream_insert.h> +#ifdef __GXX_EXPERIMENTAL_CXX0X__ +# include <system_error> +#endif + _GLIBCXX_BEGIN_NAMESPACE(std) // [27.6.2.1] Template class basic_ostream @@ -531,6 +535,13 @@ _GLIBCXX_BEGIN_NAMESPACE(std) { return (__out << reinterpret_cast<const char*>(__s)); } //@} +#ifdef __GXX_EXPERIMENTAL_CXX0X__ + template<typename _CharT, typename _Traits> + inline basic_ostream<_CharT, _Traits>& + operator<<(basic_ostream<_CharT, _Traits>& __out, const error_code& __e) +{ return (__out << __e.category().name().c_str() << ':' << __e.value()); } +#endif + // [27.6.2.7] standard basic_ostream manipulators /** * @brief Write a newline and flush the stream. |

