Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mlemacio committed Feb 18, 2023
2 parents 9f8d25f + 99b4c1f commit b5c6076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 0 additions & 4 deletions stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -3364,10 +3364,6 @@ struct formatter<const _CharT*, _CharT>
template <_Format_supported_charT _CharT, size_t _Nx>
struct formatter<_CharT[_Nx], _CharT> : _Formatter_base<_CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {};

template <_Format_supported_charT _CharT, size_t _Nx>
struct formatter<const _CharT[_Nx], _CharT>
: _Formatter_base<_CharT[_Nx], _CharT, _Basic_format_arg_type::_CString_type> {};

template <_Format_supported_charT _CharT, class _Traits, class _Allocator>
struct formatter<basic_string<_CharT, _Traits, _Allocator>, _CharT>
: _Formatter_base<basic_string<_CharT, _Traits, _Allocator>, _CharT, _Basic_format_arg_type::_String_type> {};
Expand Down
10 changes: 8 additions & 2 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -8399,8 +8399,14 @@ namespace ranges {
}
}

// clang-format off
template <class _Container>
concept _Is_cv_unqualified = !is_const_v<_Container> && !is_volatile_v<_Container>;
// clang-format on


_EXPORT_STD template <class _Container, input_range _Rng, class... _Types>
requires (!view<_Container>)
requires (_Is_cv_unqualified<_Container> && !view<_Container>)
_NODISCARD constexpr _Container to(_Rng&& _Range, _Types&&... _Args) {
static_assert(!is_const_v<_Container>, "the target type must be cv-unqualified");
static_assert(!is_volatile_v<_Container>, "the target type must be cv-unqualified");
Expand Down Expand Up @@ -8442,7 +8448,7 @@ namespace ranges {
};

_EXPORT_STD template <class _Container, class... _Types>
requires (!view<_Container>)
requires (_Is_cv_unqualified<_Container> && !view<_Container>)
_NODISCARD constexpr auto to(_Types&&... _Args) {
static_assert(!is_const_v<_Container>, "the target type must be cv-unqualified");
static_assert(!is_volatile_v<_Container>, "the target type must be cv-unqualified");
Expand Down

0 comments on commit b5c6076

Please sign in to comment.