From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 04FF93858038; Sat, 9 Oct 2021 00:15:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04FF93858038 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-4267] libstdc++: Define deleted wchar_t overloads unconditionally [PR 98725] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 3c9fbc26af6739c7ddf8f0895ae68b530cf88bbe X-Git-Newrev: 9a89281c4005a51eeed058ca66bcce8df1dd1b24 Message-Id: <20211009001533.04FF93858038@sourceware.org> Date: Sat, 9 Oct 2021 00:15:33 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2021 00:15:33 -0000 https://gcc.gnu.org/g:9a89281c4005a51eeed058ca66bcce8df1dd1b24 commit r12-4267-g9a89281c4005a51eeed058ca66bcce8df1dd1b24 Author: Jonathan Wakely Date: Fri Oct 8 14:26:09 2021 +0100 libstdc++: Define deleted wchar_t overloads unconditionally [PR 98725] We don't need to have support in order to delete overloads for inserting wide characters into narrow streams. libstdc++-v3/ChangeLog: PR libstdc++/98725 * include/std/ostream (operator<<(basic_ostream&, wchar_t)) (operator<<(basic_ostream&, const wchar_t*)): Always define as deleted. Do not check _GLIBCXX_USE_WCHAR_T. Diff: --- libstdc++-v3/include/std/ostream | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libstdc++-v3/include/std/ostream b/libstdc++-v3/include/std/ostream index 7d39c5706d5..4d7b9b4ef0b 100644 --- a/libstdc++-v3/include/std/ostream +++ b/libstdc++-v3/include/std/ostream @@ -533,11 +533,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // The following deleted overloads prevent formatting character values as // numeric values. -#ifdef _GLIBCXX_USE_WCHAR_T template basic_ostream& operator<<(basic_ostream&, wchar_t) = delete; -#endif // _GLIBCXX_USE_WCHAR_T #ifdef _GLIBCXX_USE_CHAR8_T template @@ -629,11 +627,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // The following deleted overloads prevent formatting strings as // pointer values. -#ifdef _GLIBCXX_USE_WCHAR_T template basic_ostream& operator<<(basic_ostream&, const wchar_t*) = delete; -#endif // _GLIBCXX_USE_WCHAR_T #ifdef _GLIBCXX_USE_CHAR8_T template