File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -206,11 +206,6 @@ target_sources(
206
206
include /seq/impl.hpp
207
207
include /seq/step.hpp)
208
208
209
- target_compile_options (
210
- cib
211
- INTERFACE
212
- $<$<CXX_COMPILER_ID:Clang>:-Wno-gnu-string -literal-operator-template>)
213
-
214
209
if (PROJECT_IS_TOP_LEVEL)
215
210
add_docs(docs)
216
211
clang_tidy_interface(cib)
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include < stdx/compiler.hpp>
4
+ #include < stdx/ct_string.hpp>
5
+
3
6
#include < concepts>
4
7
#include < type_traits>
5
8
@@ -30,9 +33,8 @@ template <typename T> constexpr static type_name<T> type_{};
30
33
template <typename CharT, CharT... chars> struct string_constant ;
31
34
32
35
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>();
36
38
}
37
39
} // namespace literals
38
40
} // namespace sc
You can’t perform that action at this time.
0 commit comments