File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1009,7 +1009,7 @@ namespace bizwen
1009
1009
requires ::std::input_iterator<InputIt>
1010
1010
constexpr basic_string (InputIt first, InputIt last)
1011
1011
{
1012
- if constexpr (::std::forward_iterator <InputIt>)
1012
+ if constexpr (::std::random_access_iterator <InputIt>)
1013
1013
{
1014
1014
auto length = ::std::ranges::distance (first, last);
1015
1015
allocate_plus_one_ (length);
@@ -1159,7 +1159,7 @@ namespace bizwen
1159
1159
requires ::std::input_iterator<InputIt>
1160
1160
constexpr basic_string& append (InputIt first, InputIt last)
1161
1161
{
1162
- if constexpr (::std::forward_iterator <InputIt>)
1162
+ if constexpr (::std::random_access_iterator <InputIt>)
1163
1163
{
1164
1164
auto size = size_ ();
1165
1165
auto length = ::std::ranges::distance (first, last);
@@ -1847,7 +1847,7 @@ namespace bizwen
1847
1847
auto end = end_ ();
1848
1848
auto index = start - begin_ ();
1849
1849
1850
- if constexpr (::std::forward_iterator <InputIt>)
1850
+ if constexpr (::std::random_access_iterator <InputIt>)
1851
1851
{
1852
1852
auto length = ::std::distance (first, last);
1853
1853
reserve (size + length);
You can’t perform that action at this time.
0 commit comments