string: ignore codecvt deprecation for the moment
This commit is contained in:
parent
3e480c7bbb
commit
5721602ef7
@ -12,6 +12,11 @@
|
||||
#include <codecvt>
|
||||
#include <locale>
|
||||
|
||||
// HACK: cxx#xxx, codecvt is deprecated, but we don't have a good solution right now.
|
||||
// Ignoring the warning is the best past forward in the short term.
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignore "-Wdeprecated-declaration"
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
std::string
|
||||
@ -39,3 +44,6 @@ strbegins (const char *restrict str,
|
||||
const char *restrict prefix) {
|
||||
return 0 == strncmp (prefix, str, strlen (prefix));
|
||||
}
|
||||
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
Loading…
Reference in New Issue
Block a user