Add additional check for Scalar to be sure that it can't be dangled

This commit is contained in:
Artem Zyktin 2026-05-30 20:09:23 +08:00
parent 29a3fdd5d0
commit d8401683b6

View File

@ -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;