Made that mistake, because my descriptions are not hand-written, but code-generated,
and I forgot that container I was using had all types, not just structs. I fixed my generator
since, but the code should probably static_assert the type is not an enum (or primitive).
Of course, I generated something like
BOOST_DESCRIBE_STRUCT(
MyEnum, (),
() // No state
)
Made that mistake, because my descriptions are not hand-written, but code-generated, and I forgot that container I was using had all types, not just structs. I fixed my generator since, but the code should probably
static_assert
the type is not an enum (or primitive).Of course, I generated something like