News for hackers. Stuff that matters.
Re:Nameof Operator for Modern C++ by neargye on Saturday March 23, 2019 @05:05AM (#19469690)
Header-only C++17 library provides nameof macros and functions to obtain simple name of variable, type, function, macro, and enum.

Before, you had to use string literals to refer to definitions, which is brittle when renaming code elements because tools do not know to check these string literals.

Try it online: https://wandbox.org/permlink/ffnImjrPVcZR2l5y

There are no comments on this comment yet.