From e44069de390f135944301b599eace70d566b6df3 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Wed, 23 Oct 2024 16:41:23 -0600 Subject: [PATCH] :rotating_light: Remove GNU extension --- CMakeLists.txt | 5 ----- include/sc/fwd.hpp | 8 +++++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc19f678..0821d1ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,11 +206,6 @@ target_sources( include/seq/impl.hpp include/seq/step.hpp) -target_compile_options( - cib - INTERFACE - $<$:-Wno-gnu-string-literal-operator-template>) - if(PROJECT_IS_TOP_LEVEL) add_docs(docs) clang_tidy_interface(cib) diff --git a/include/sc/fwd.hpp b/include/sc/fwd.hpp index 76bd3e32..94546c22 100644 --- a/include/sc/fwd.hpp +++ b/include/sc/fwd.hpp @@ -1,5 +1,8 @@ #pragma once +#include +#include + #include #include @@ -30,9 +33,8 @@ template constexpr static type_name type_{}; template struct string_constant; inline namespace literals { -template -constexpr auto operator""_sc() -> sc::string_constant { - return {}; +template CONSTEVAL auto operator""_sc() { + return stdx::ct_string_to_type(); } } // namespace literals } // namespace sc