Add additional check for Scalar to be sure that it can't be dangled
This commit is contained in:
parent
29a3fdd5d0
commit
d8401683b6
@ -20,6 +20,8 @@ private:
|
|||||||
vf4 _value;
|
vf4 _value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(is_stored_by_value_v<Scalar>, "Scalar must be stored by value");
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
inline constexpr bool is_scalar_expr<Scalar> = true;
|
inline constexpr bool is_scalar_expr<Scalar> = true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user