libstdc++: Remove workaround for PR c++/78173
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 11:40:07 +0000 (11:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 15 Dec 2020 11:45:27 +0000 (11:45 +0000)
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.

libstdc++-v3/include/bits/iterator_concepts.h

index 6668caa8185c7c3922b89a0ed70f84428440b8c0..414a81e724999b32101fc5fe7215d7ed878c2eb2 100644 (file)
@@ -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