Specifically exclude __clang__

This commit is contained in:
Ralf W. Grosse-Kunstleve 2023-07-26 13:28:49 -07:00
parent b9f3380130
commit 8ea1b8cda7
2 changed files with 2 additions and 2 deletions

View File

@ -1378,7 +1378,7 @@ inline namespace literals {
String literal version of `arg`
\endrst */
constexpr arg
#if defined(__GNUC__) && __GNUC__ < 5
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5
operator"" _a // gcc 4.8.5 insists on having a space (hard error).
#else
operator""_a // clang 17 generates a deprecation warning if there is a space.

View File

@ -1613,7 +1613,7 @@ inline namespace literals {
String literal version of `str`
\endrst */
inline str
#if defined(__GNUC__) && __GNUC__ < 5
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5
operator"" _s // gcc 4.8.5 insists on having a space (hard error).
#else
operator""_s // clang 17 generates a deprecation warning if there is a space.