Упрощенная версия моего кода выглядит так:
Код: Выделить всё
template
void Log(std::string const& function,
std::string const& variable_1 = "", Value1 value_1 = Value1(0),
std::string const& variable_2 = "", Value2 value_2 = Value2(0)) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/32047685/variadic-macro-without-arguments[/url]
Мобильная версия