Skip to content

Commit 21f8447

Browse files
committed
remove if (constexpr)
Signed-off-by: Michael Carlstrom <[email protected]>
1 parent e9bf4e5 commit 21f8447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ struct type_caster<T, enable_if_t<std::is_arithmetic<T>::value && !is_std_char_t
252252
auto index_check = [](PyObject *o) { return hasattr(o, "__index__"); };
253253
#endif
254254

255-
if constexpr (std::is_floating_point<T>::value) {
255+
if (std::is_floating_point<T>::value) {
256256
if (convert || PyFloat_Check(src.ptr()) || PYBIND11_LONG_CHECK(src.ptr())) {
257257
py_value = (py_type) PyFloat_AsDouble(src.ptr());
258258
} else {

0 commit comments

Comments
 (0)