Skip to content

Commit

Permalink
relax iterator requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Aug 23, 2023
1 parent ca2a1b5 commit f48b6dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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

0 comments on commit f48b6dd

Please sign in to comment.