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(
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-
214209if (PROJECT_IS_TOP_LEVEL)
215210 add_docs(docs)
216211 clang_tidy_interface(cib)
Original file line number Diff line number Diff line change 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_{};
3033template <typename CharT, CharT... chars> struct string_constant ;
3134
3235inline 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
You can’t perform that action at this time.
0 commit comments