Skip to content

Commit a15fbcd

Browse files
Oops forgot constexpr
1 parent b2aed1c commit a15fbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/eigen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ struct type_caster<Eigen::TensorMap<Type>, typename eigen_tensor_helper<Type>::V
932932
template <typename C>
933933
static handle cast_impl(C *src, return_value_policy policy, handle parent) {
934934
object parent_object;
935-
bool writeable = !std::is_const<C>::value;
935+
constexpr bool writeable = !std::is_const<C>::value;
936936
switch (policy) {
937937
case return_value_policy::reference:
938938
parent_object = none();

0 commit comments

Comments
 (0)