Chromium Code Reviews| Index: base/strings/safe_sprintf.h |
| diff --git a/base/strings/safe_sprintf.h b/base/strings/safe_sprintf.h |
| index a1be047955c191fc07ce1835c062f8c45cbfe19e..e27429fc0e83ce3ac6d18a28cb1b565b466720b9 100644 |
| --- a/base/strings/safe_sprintf.h |
| +++ b/base/strings/safe_sprintf.h |
| @@ -190,7 +190,9 @@ BASE_EXPORT size_t GetSafeSPrintfSSizeMaxForTest(); |
| } // namespace internal |
| -#if __cplusplus >= 201103 // C++11 |
|
Nico
2013/12/05 21:11:35
Huh where did that come from? We should probably d
Inactive
2013/12/05 21:15:15
Hmm. This is a bit more readable than the non-C++1
|
| +#if __cplusplus >= 201103 && !defined(COMPILER_GCC) // C++11 |
| + |
| +// The following does not build with gcc yet. |
| template<typename... Args> |
| ssize_t SafeSNPrintf(char* buf, size_t N, const char* fmt, Args... args) { |