Anton Bachin
Anton Bachin
You would have to edit the macro to store the name of the type being declared somewhere. I'm not immediately sure if it can be done in a compile-time only...
This question is far too generic and contains no information at all about what specifically you might be having trouble with. I won't have time in the immediate term to...
Some of the trade-offs are listed in [*Should Better Enums provide enum "objects" or traits types?*](https://aantron.github.io/better-enums/DesignDecisionsFAQ.html#ShouldBetterEnumsProvideEnum) in the design decisions FAQ. There is also a [link](https://github.com/aantron/better-enums/tree/traits) to an old implementation...
Thanks! Does the example work if you remove this line from `describe`? ```c++ return "needed for gcc 5"; ``` What is the command line you are using to compile the...
Try adding ```c++ #define BETTER_ENUMS_CLASS_ATTRIBUTE __attribute__((packed, aligned(1))) ``` before the enum. See [*Injecting tokens*](https://aantron.github.io/better-enums/OptInFeatures.html#InjectingTokens).
You may be able to use the [default constructors override macro](https://aantron.github.io/better-enums/OptInFeatures.html#DefaultConstructors) to either: - Give enums a public constructor, and derive a class from them. - Inject arbitrary code into...
It's been a long time, but it looks like there is an intermediate call to a default constructor somewhere during the insert. I'm not immediately sure what the *best* solution...
@jaskij Thanks! Let's see if there is any word from @biziosan on whether `emplace` fixes the issue, and then I'll add it to the docs.
Is that the full error message? I can't tell if your compiler is gcc or clang (or something else — you did not specify). But all the recent compilers I...
Can you give a small example of a program that fails, show the message, and give the version or commit hash of the `enum.h` you are using?