#pragma once // // This file is distributed under the MIT License. See LICENSE.md for details. // template struct NamedEnumScalarTraits { template static void enumeration(T &IO, E &V) { for (unsigned I = 0; I < E::Count; ++I) { auto Value = static_cast(I); IO.enumCase(V, getName(Value).data(), Value); } } };