File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
include/beman/cstring_view Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ using type_identity_t = typename type_identity<T>::type;
3131} // namespace detail
3232
3333#if __cpp_concepts >= 201907L
34- template <typename T>
35- concept cstring_like = requires (const T & t) { { t.c_str () } -> std::same_as<const T::value_type*> };
34+ template <typename T>
35+ concept cstring_like = requires (const T& t) {
36+ { t.c_str () } -> std::same_as<const T::value_type*>
37+ };
3638#endif
3739
3840// [cstring.view.template], class template basic_cstring_view
@@ -155,16 +157,18 @@ class basic_cstring_view {
155157
156158 template <typename R
157159#if __cpp_concepts < 201907L
158- // Just pretend this is doing the concept match that the paper proposes
159- , typename = decltype ((*(std::decay_t <R>*)0 ).c_str())
160+ // Just pretend this is doing the concept match that the paper proposes
161+ ,
162+ typename = decltype ((*(std::decay_t <R>*)0 ).c_str())
160163#endif
161- >
164+ >
162165 constexpr basic_cstring_view (
163166#if __cpp_concepts >= 201907L
164- cstring_like
167+ cstring_like
165168#endif
166- R&& r)
167- : basic_cstring_view(r.c_str(), r.size()) {}
169+ R&& r)
170+ : basic_cstring_view(r.c_str(), r.size()) {
171+ }
168172
169173 // [cstring.view.iterators], iterator support
170174 constexpr const_iterator begin () const noexcept { return data_; }
You can’t perform that action at this time.
0 commit comments