Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relax iterator requirements #919

Merged
merged 1 commit into from
Aug 23, 2023
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
8 changes: 4 additions & 4 deletions include/boost/json/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class array
@par Constraints

@code
std::is_constructible_v<value, std::iterator_traits<InputIt>::value_type>
std::is_constructible_v<value, std::iterator_traits<InputIt>::reference>
@endcode

@par Complexity
Expand Down Expand Up @@ -312,7 +312,7 @@ class array
,class = typename std::enable_if<
std::is_constructible<value,
typename std::iterator_traits<
InputIt>::value_type>::value>::type
InputIt>::reference>::value>::type
#endif
>
array(
Expand Down Expand Up @@ -1239,7 +1239,7 @@ class array

@par Mandates
@code
std::is_constructible_v<value, std::iterator_traits<InputIt>::value_type>
std::is_constructible_v<value, std::iterator_traits<InputIt>::reference>
@endcode

@par Complexity
Expand Down Expand Up @@ -1270,7 +1270,7 @@ class array
,class = typename std::enable_if<
std::is_constructible<value,
typename std::iterator_traits<
InputIt>::value_type>::value>::type
InputIt>::reference>::value>::type
#endif
>
iterator
Expand Down
6 changes: 3 additions & 3 deletions include/boost/json/object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class object
template<class T>
using is_inputit = typename std::enable_if<
std::is_constructible<key_value_pair,
typename std::iterator_traits<T>::value_type
typename std::iterator_traits<T>::reference
>::value>::type;

BOOST_JSON_DECL
Expand Down Expand Up @@ -249,7 +249,7 @@ class object
@code
std::is_constructible_v<
key_value_pair,
std::iterator_traits<InputIt>::value_type>
std::iterator_traits<InputIt>::reference>
@endcode

@par Complexity
Expand Down Expand Up @@ -988,7 +988,7 @@ class object

@par Constraints
@code
std::is_constructible_v<value_type, std::iterator_traits<InputIt>::value_type>
std::is_constructible_v<value_type, std::iterator_traits<InputIt>::reference>
@endcode

@par Complexity
Expand Down
2 changes: 1 addition & 1 deletion include/boost/json/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class string
template<class T>
using is_inputit = typename std::enable_if<
std::is_convertible<typename
std::iterator_traits<T>::value_type,
std::iterator_traits<T>::reference,
char>::value>::type;

storage_ptr sp_; // must come first
Expand Down
Loading