Skip to content

Commit 99ed4d1

Browse files
style: pre-commit fixes
1 parent 04872f4 commit 99ed4d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/pybind11/pybind11.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments")
4444
#endif
4545

4646
#if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606
47-
#define PYBIND11_MYABE_CONSTEXPR constexpr
47+
# define PYBIND11_MYABE_CONSTEXPR constexpr
4848
#else
49-
#define PYBIND11_MYABE_CONSTEXPR
49+
# define PYBIND11_MYABE_CONSTEXPR
5050
#endif
5151

5252
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
@@ -3612,8 +3612,8 @@ function get_override(const T *this_ptr, const char *name) {
36123612
auto o = override(__VA_ARGS__); \
36133613
PYBIND11_WARNING_PUSH \
36143614
PYBIND11_WARNING_DISABLE_MSVC(4127) \
3615-
if PYBIND11_MYABE_CONSTEXPR \
3616-
(pybind11::detail::cast_is_temporary_value_reference<ret_type>::value \
3615+
if PYBIND11_MYABE_CONSTEXPR ( \
3616+
pybind11::detail::cast_is_temporary_value_reference<ret_type>::value \
36173617
&& !pybind11::detail::is_same_ignoring_cvref<ret_type, PyObject *>::value) { \
36183618
static pybind11::detail::override_caster_t<ret_type> caster; \
36193619
return pybind11::detail::cast_ref<ret_type>(std::move(o), caster); \

0 commit comments

Comments
 (0)