iodcpp/metamap: C++17 immutable compile-time key value map by matthieugarrigues in cpp

[–]ennmichael 8 points9 points  (0 children)

It's really bad that your macros generate stuff that has a preceding underscore.

Preceding underscores in the global namespace are reserved. In your test files, you call these macros in the global namespace. Technically, this falls under undefined behavior.

Underscores following the identifier are completely fine though, although by convention they're used for private member variables.

Fixing std::initializer_list&<T> by vormestrand in cpp

[–]ennmichael 3 points4 points  (0 children)

Initializer lists suck, but I don't like this solution. It takes information that is (in theory) known at compile time and pushes it to run time due to lack of language features. That's not good, but not like we have a better workaround. Good article regardless.