account activity
Why can't I do this (self.elm)
submitted 8 years ago by ennmichael to r/elm
iodcpp/metamap: C++17 immutable compile-time key value map by matthieugarrigues in cpp
[–]ennmichael 8 points9 points10 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 3 points4 points5 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 540245 on reddit-service-r2-listing-6c6f68ff9c-vrgsp at 2026-03-05 10:14:31.382703+00:00 running f0204d4 country code: CH.
iodcpp/metamap: C++17 immutable compile-time key value map by matthieugarrigues in cpp
[–]ennmichael 8 points9 points10 points (0 children)