Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1285

Comment by HolyBlackCat on C++ log method capturing source line with variadic arguments

$
0
0
The first argument should be a format_string<Args...> to enable compile-time format string checking. And then you just inherit from format_string and add the default source_location argument to its constructors.

Viewing all articles
Browse latest Browse all 1285

Trending Articles