mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Replace is_copy_constructible+is_trivial with is_trivially_copyable.
For the purpose of selecting operator[] result type, we don't care whether the value type is trivially default-constructible. So, in order to avoid using the deprecated in C++26 is_trivial, use is_trivially_copyable instead of is_copy_constructible+is_trivial. Closes https://github.com/boostorg/iterator/issues/93.
This commit is contained in:
@ -374,8 +374,7 @@ template< typename ValueType, typename Reference >
|
||||
struct use_operator_brackets_proxy :
|
||||
public detail::negation<
|
||||
detail::conjunction<
|
||||
std::is_copy_constructible< ValueType >,
|
||||
std::is_trivial< ValueType >,
|
||||
std::is_trivially_copyable< ValueType >,
|
||||
iterator_writability_disabled< ValueType, Reference >
|
||||
>
|
||||
>
|
||||
|
Reference in New Issue
Block a user