Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ target_sources(
include/seq/impl.hpp
include/seq/step.hpp)

target_compile_options(
cib
INTERFACE
$<$<CXX_COMPILER_ID:Clang>:-Wno-gnu-string-literal-operator-template>)

if(PROJECT_IS_TOP_LEVEL)
add_docs(docs)
clang_tidy_interface(cib)
Expand Down
8 changes: 5 additions & 3 deletions include/sc/fwd.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <stdx/compiler.hpp>
#include <stdx/ct_string.hpp>

#include <concepts>
#include <type_traits>

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

inline namespace literals {
template <class T, T... chars>
constexpr auto operator""_sc() -> sc::string_constant<T, chars...> {
return {};
template <stdx::ct_string S> CONSTEVAL auto operator""_sc() {
return stdx::ct_string_to_type<S, string_constant>();
}
} // namespace literals
} // namespace sc
Expand Down