#include <iostream>
#include <source_location>
void foo(const std::source_location &location = std::source_location::current())
{
std::cout << location.file_name() << ":"
<< location.line() << ":"
<< location.function_name();
}
int main()
{
foo();
return 0;
}
// main.cpp:13:int main()