Skip to content

Commit e44069d

Browse files
committed
🚨 Remove GNU extension
1 parent 416710f commit e44069d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ target_sources(
206206
include/seq/impl.hpp
207207
include/seq/step.hpp)
208208

209-
target_compile_options(
210-
cib
211-
INTERFACE
212-
$<$<CXX_COMPILER_ID:Clang>:-Wno-gnu-string-literal-operator-template>)
213-
214209
if(PROJECT_IS_TOP_LEVEL)
215210
add_docs(docs)
216211
clang_tidy_interface(cib)

include/sc/fwd.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#pragma once
22

3+
#include <stdx/compiler.hpp>
4+
#include <stdx/ct_string.hpp>
5+
36
#include <concepts>
47
#include <type_traits>
58

@@ -30,9 +33,8 @@ template <typename T> constexpr static type_name<T> type_{};
3033
template <typename CharT, CharT... chars> struct string_constant;
3134

3235
inline namespace literals {
33-
template <class T, T... chars>
34-
constexpr auto operator""_sc() -> sc::string_constant<T, chars...> {
35-
return {};
36+
template <stdx::ct_string S> CONSTEVAL auto operator""_sc() {
37+
return stdx::ct_string_to_type<S, string_constant>();
3638
}
3739
} // namespace literals
3840
} // namespace sc

0 commit comments

Comments
 (0)