diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-12-15 11:40:07 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-12-15 11:45:27 +0000 |
commit | fa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69 (patch) | |
tree | 77d1c3843d81c90899bca5f346fdc34db5a4856b /libstdc++-v3 | |
parent | a929b39aa32a6bc65158bd8e32ce96bc1c906065 (diff) | |
download | gcc-fa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69.zip gcc-fa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69.tar.gz gcc-fa452a843d26a64a5ca0fd7c17ea1bd6e1b81a69.tar.bz2 |
libstdc++: Remove workaround for PR c++/78173
Now that the G++ bug is fixed we no longer need to protect this partial
specialization from complaining about subtracting void pointers.
libstdc++-v3/ChangeLog:
* include/bits/iterator_concepts.h (incrementable_traits<Tp>):
Remove workaround for PR c++/78173.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/bits/iterator_concepts.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/iterator_concepts.h b/libstdc++-v3/include/bits/iterator_concepts.h index 6668caa..414a81e 100644 --- a/libstdc++-v3/include/bits/iterator_concepts.h +++ b/libstdc++-v3/include/bits/iterator_concepts.h @@ -163,10 +163,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _Tp> requires (!requires { typename _Tp::difference_type; } && requires(const _Tp& __a, const _Tp& __b) - { - requires (!is_void_v<remove_pointer_t<_Tp>>); // PR c++/78173 - { __a - __b } -> integral; - }) + { { __a - __b } -> integral; }) struct incrementable_traits<_Tp> { using difference_type |