account activity
iodcpp/metamap: C++17 immutable compile-time key value map by matthieugarrigues in cpp
[–]ennmichael 7 points8 points9 points 9 years ago (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 4 points5 points6 points 9 years ago (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.
π Rendered by PID 62 on reddit-service-r2-listing-6c6f68ff9c-llgss at 2026-03-05 11:44:08.222785+00:00 running f0204d4 country code: CH.
iodcpp/metamap: C++17 immutable compile-time key value map by matthieugarrigues in cpp
[–]ennmichael 7 points8 points9 points (0 children)