wg21
wg21 copied to clipboard
`constexpr` all the things
LA operators are not constexpr for statically known bounds (literal types). The following code fails to compile:
template<Unit U = si::metre>
using v_length = fs_vector<si::length<U>, 3>;
static_assert(v_length<>{ 1q_m, 2q_m, 3q_m } + v_length<>{ 3q_m, 2q_m, 1q_m } == v_length<>{ 4q_m, 4q_m, 4q_m });
done for r7z