79353781

Date: 2025-01-14 01:11:46
Score: 0.5
Natty:
Report link

In C++26, with the final reflection syntax:

class Blah {};
constexpr std::string_view name = std::meta::identifier_of(^^Blah); 
assert( className == "Blah" );

Godbolt example: https://godbolt.org/z/Kbr3jGbT1

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Jean-Michaƫl Celerier