libstdc++: ranges::iter_move should perform ADL-only lookup (LWG 3247)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 16:43:07 +0000 (16:43 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 21:21:06 +0000 (21:21 +0000)
* include/bits/iterator_concepts.h (iter_move): Add declaration to
prevent unqualified lookup finding a suitable declaration (LWG 3247).

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

index 067cf8343f66917945e43a96d2a45d811c849a4f..689bee8c2a9f044270a91244d50abc355e11726c 100644 (file)
@@ -1,5 +1,8 @@
 2020-02-19  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/iterator_concepts.h (iter_move): Add declaration to
+       prevent unqualified lookup finding a suitable declaration (LWG 3247).
+
        * include/std/memory_resource (polymorphic_allocator::allocate)
        (polymorphic_allocator::allocate_object): Change type of exception to
        bad_array_new_length (LWG 3237).
index 792b32621066ad0154db4a3fe8290a468a2b6534..08e622259b47757c19b8a54fa32b78479234c0f9 100644 (file)
@@ -79,6 +79,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   {
     namespace __cust_imove
     {
+      void iter_move();
+
       template<typename _Tp>
        concept __adl_imove
          = (std::__detail::__class_or_enum<remove_reference_t<_Tp>>)