From 91fd16a7bddb7d0f63d7b4b4038b4a9eb8787678 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 10 Dec 2019 17:35:42 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/bits/ios_base.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 017160231c7..3f5d01eabf0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-12-10 Jonathan Wakely + 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 06a3e0870f3..be908b3ffd2 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 -- 2.30.2