mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
Specifically exclude __clang__
This commit is contained in:
parent
b9f3380130
commit
8ea1b8cda7
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user