Sfoglia il codice sorgente

Fix GCC compilation issue.

pull/1/head
Sam Hocevar 4 anni fa
parent
commit
d21392096a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      include/lol/private/base/string.h

+ 1
- 1
include/lol/private/base/string.h Vedi File

@@ -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);


Caricamento…
Annulla
Salva