News for hackers. Stuff that matters.
Re:C++: Associative map containers with compile-time lookup by sriram_sun on Tuesday October 23, 2018 @10:10AM (#18283496)
#define ID(x) []() constexpr { return x; }

Interesting! Macro substitutions can expand to anything of course. I hadn't really considered adding lambda functions to that list.

Re:C++: Associative map containers with compile-time lookup by hogliux on Tuesday October 23, 2018 @10:13AM (#18283517)
I'm looking forward to C++-20 when this is not needed anymore :-) - it will support string literals as non-type template parameters.