Fields shouldn't even be constructible.

This commit is contained in:
Alexander McCord 2024-06-02 19:40:53 -07:00
parent ba53dd03dc
commit 56d4f52434

View file

@ -164,6 +164,13 @@ private:
/// Empty base class just for static_asserts.
struct FieldBase
{
FieldBase() = delete;
FieldBase(FieldBase&&) = delete;
FieldBase& operator=(FieldBase&&) = delete;
FieldBase(const FieldBase&) = delete;
FieldBase& operator=(const FieldBase&) = delete;
};
template<typename Phantom>