Skip to content

Commit

Permalink
fixup! no if constexpr please
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Oct 17, 2023
1 parent 22186cc commit d280f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ move(T &&value) {

template <typename T>
detail::enable_if_t<!detail::move_never<T>::value, T> move(object &&obj) {\
if constexpr (detail::cast_is_temporary_value_reference<T>::value) {
if (detail::cast_is_temporary_value_reference<T>::value) {
if (obj.ref_count() > 1) {
#if !defined(PYBIND11_DETAILED_ERROR_MESSAGES)
throw cast_error(
Expand Down

0 comments on commit d280f26

Please sign in to comment.