The C++20 feature std::source_location is used to capture information about the context in which a function is called.
When I try to use it with a variadic tem
Not a great solution but... what about place the variadic arguments in a std::tuple?
I mean... something as
template
void debug (std::tuple && t_args,
std::source_location const & loc = std::source_location::current());
Unfortunately, this way you have to explicitly call std::make_tuple calling it
debug(std::make_tuple(1, 2l, 3ll));