nameof

September 14, 2025 ยท View on GitHub

Shows how to use nameof_ keyword.

Sources

  • src/nameof.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

print_names
value_t
the_answer_to_life_the_universe_and_everything is 42
(124 + 26) / 2 = 75

Contents

  1. 1Sources
  2. 2Build and run
  3. 3Output