3 ms·
The actual name format is implementation defined. Here's the output from clang 17: int main():9 auto main()::(anonymous class)::operator()(std::source_
by dkersten 3y ago
The actual name format is implementation defined. Here's the output from clang 17:
int main():9
auto main()::(anonymous class)::operator()(std::source_location) const:5
so your formatter/helper would need to be compiler-aware, although to extract “main” in both cases I suppose you can just grab everything between the first whitespace and (, although I assume both types would contain specifiers like const where included in the return type. I don’t know what MSVC outputs.
- Tempest1981 3y agoThanks again, I'll have to give it a try once we get on C++20