From b2a6d4ebabae9e241ad6e5db2f6bf9abdf0a7d85 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 30 Nov 2017 11:27:00 -0800 Subject: [PATCH] ircd: Add #ifdef around experimental string_view for non-c++17. --- include/ircd/stdinc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ircd/stdinc.h b/include/ircd/stdinc.h index 906e61559..892d28ce2 100644 --- a/include/ircd/stdinc.h +++ b/include/ircd/stdinc.h @@ -135,10 +135,12 @@ extern "C" { #define AFGP(a, b) __attribute__((format(gnu_printf, a, b))) // Experimental std::string_view +#if __cplusplus <= 201703 //TODO: refine namespace std { using experimental::string_view; } +#endif /////////////////////////////////////////////////////////////////////////////// //