diff --git a/examples/example-base/example-base.h b/examples/example-base/example-base.h index 0cb3de7e97..6988d613be 100644 --- a/examples/example-base/example-base.h +++ b/examples/example-base/example-base.h @@ -94,10 +94,10 @@ int64_t getTimerFrequency(); template inline void reportError(const char* format, TArgs... args) { - printf(format, args...); + printf(format, std::forward(args)...); #ifdef _WIN32 char buffer[4096]; - sprintf_s(buffer, format, args...); + sprintf_s(buffer, format, std::forward(args)...); _Win32OutputDebugString(buffer); #endif }