diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-12-10 17:35:42 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-12-10 17:35:42 +0000 |
commit | 91fd16a7bddb7d0f63d7b4b4038b4a9eb8787678 (patch) | |
tree | 6d015cd4cceaa452616122f881485622c1dc4f0b | |
parent | aa1a27950ae6a41a5a75f5d05eccb52bb31e240c (diff) | |
download | gcc-91fd16a7bddb7d0f63d7b4b4038b4a9eb8787678.zip gcc-91fd16a7bddb7d0f63d7b4b4038b4a9eb8787678.tar.gz gcc-91fd16a7bddb7d0f63d7b4b4038b4a9eb8787678.tar.bz2 |
libstdc++: Fix description of std::ios::trunc (PR 92886)
PR libstdc++/92886
* include/bits/ios_base.h (std::ios_base::trunc): Fix comment.
From-SVN: r279175
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ios_base.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0171602..3f5d01e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-12-10 Jonathan Wakely <jwakely@redhat.com> + PR libstdc++/92886 + * include/bits/ios_base.h (std::ios_base::trunc): Fix comment. + * include/std/complex (__cpp_lib_constexpr_complex): Define. * include/std/version (__cpp_lib_constexpr_complex): Likewise. * testsuite/26_numerics/complex/1.cc: New test. diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index 06a3e08..be908b3 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -445,7 +445,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// Open for output. Default for @c ofstream and fstream. static const openmode out = _S_out; - /// Open for input. Default for @c ofstream. + /// Truncate an existing stream when opening. Default for @c ofstream. static const openmode trunc = _S_trunc; // 27.4.2.1.5 Type ios_base::seekdir |