Skip to content

Commit e5580f6

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

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,8 @@ 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>)
209+
# target_compile_options( cib INTERFACE
210+
# $<$<CXX_COMPILER_ID:Clang>:-Wno-gnu-string-literal-operator-template>)
213211

214212
if(PROJECT_IS_TOP_LEVEL)
215213
add_docs(docs)

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)