mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +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`
|
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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user