Redundant static_assert. Rework it a smidge.

This commit is contained in:
Alexander McCord 2024-05-26 19:51:39 -07:00
parent 2a2de1cea2
commit ffb353aee9

View file

@ -122,8 +122,7 @@ public:
template<typename T> template<typename T>
Id field() const Id field() const
{ {
static_assert(std::is_base_of<FieldBase, T>::value); static_assert(std::disjunction_v<std::is_same<std::decay_t<T>, Fields>...>);
static_assert(getIndex<T>() >= 0);
return array[getIndex<T>()]; return array[getIndex<T>()];
} }