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` String literal version of `arg`
\endrst */ \endrst */
constexpr arg 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). operator"" _a // gcc 4.8.5 insists on having a space (hard error).
#else #else
operator""_a // clang 17 generates a deprecation warning if there is a space. 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` String literal version of `str`
\endrst */ \endrst */
inline str 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). operator"" _s // gcc 4.8.5 insists on having a space (hard error).
#else #else
operator""_s // clang 17 generates a deprecation warning if there is a space. operator""_s // clang 17 generates a deprecation warning if there is a space.