Skip to content

Commit

Permalink
Oops forgot constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSteinberg committed Sep 28, 2022
1 parent b2aed1c commit a15fbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/eigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ struct type_caster<Eigen::TensorMap<Type>, typename eigen_tensor_helper<Type>::V
template <typename C>
static handle cast_impl(C *src, return_value_policy policy, handle parent) {
object parent_object;
bool writeable = !std::is_const<C>::value;
constexpr bool writeable = !std::is_const<C>::value;
switch (policy) {
case return_value_policy::reference:
parent_object = none();
Expand Down

0 comments on commit a15fbcd

Please sign in to comment.