Adapt compilerplugins/clang/test/getstr.cxx to latest MSVC standard library
...that now defines the wide-character-to-narrow-stream inserters as deleted too, at least in C++20 mode. Change-Id: I554f2530d5905e46343bf0d8bf12a6feb3d63075 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100073 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
// "libstdc++: P1423R3 char8_t remediation (2/4)" for -std=c++2a; TODO: the checks here and the
|
// "libstdc++: P1423R3 char8_t remediation (2/4)" for -std=c++2a; TODO: the checks here and the
|
||||||
// relevant code in loplugin:getstr should eventually be removed once support for the deleted
|
// relevant code in loplugin:getstr should eventually be removed once support for the deleted
|
||||||
// operators is widespread):
|
// operators is widespread):
|
||||||
#if __cplusplus > 201703L && defined __GLIBCXX__
|
#if __cplusplus > 201703L && (defined __GLIBCXX__ || defined _MSC_VER)
|
||||||
#define HAVE_DELETED_OPERATORS true
|
#define HAVE_DELETED_OPERATORS true
|
||||||
#else
|
#else
|
||||||
#define HAVE_DELETED_OPERATORS false
|
#define HAVE_DELETED_OPERATORS false
|
||||||
|
Reference in New Issue
Block a user