================
@@ -181,14 +183,16 @@ bool operator!=(const char*, const std::string_view&);
 
 size_t strlen(const char* str);
 
-namespace literals {
-namespace string_literals {
+#if __cplusplus >= 201402L
+inline namespace literals {
+inline namespace string_literals {
   string operator""s(const char *, size_t);
 }
-namespace string_view_literals {
+inline namespace string_view_literals {
   string_view operator""sv(const char *, size_t);
 }
 }
+#endif
----------------
localspook wrote:

```suggestion
#endif // __cplusplus >= 201402L
```

https://github.com/llvm/llvm-project/pull/184009
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to