瀏覽代碼

Fix GCC compilation issue.

pull/1/head
Sam Hocevar 4 年之前
父節點
當前提交
d21392096a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/lol/private/base/string.h

+ 1
- 1
include/lol/private/base/string.h 查看文件

@@ -178,7 +178,7 @@ std::basic_string<T> vformat(char const *fmt, va_list ap)
// XXX: we cheat by setting the argument time to char instead of T, because
// I found no other way to use the printf attribute.
template<typename T = char>
std::basic_string<T> format(char const *fmt, ...) lol_attr_printf_format(1, 2)
std::basic_string<T> lol_attr_printf_format(1, 2) format(char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);


Loading…
取消
儲存