From 79954e89ab1bb41295501159c72708b24303eb77 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 24 Jan 2015 14:36:03 +0000 Subject: [PATCH] Fix GCC 4.8 compilation --- src/shared_string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared_string.hh b/src/shared_string.hh index b8db3c89..3ed571e8 100644 --- a/src/shared_string.hh +++ b/src/shared_string.hh @@ -40,7 +40,7 @@ struct StringStorage : UseMemoryDomain friend void dec_ref_count(StringStorage* s) { if (--s->refcount == 0) StringStorage::destroy(s); } }; -inline ref_ptr operator""_ss(const char* ptr, size_t len) +inline ref_ptr operator"" _ss(const char* ptr, size_t len) { return StringStorage::create({ptr, (int)len}); }