Fix another compilation error with Clang
authorJonathan Wakely <jwakely@redhat.com>
Wed, 30 Oct 2019 16:57:19 +0000 (16:57 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 30 Oct 2019 16:57:19 +0000 (16:57 +0000)
* include/bits/stl_iterator.h (__normal_iterator::iterator_concept):
Guard with __cpp_lib_concepts macro.

From-SVN: r277634

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

index 643c4ace0f723cf43c5b1ff6a56a8eac1a415f09..864c8aa81eb897152fafe12c8b1140651415983d 100644 (file)
@@ -1,5 +1,8 @@
 2019-10-30  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/stl_iterator.h (__normal_iterator::iterator_concept):
+       Guard with __cpp_lib_concepts macro.
+
        * include/std/bit (__cpp_lib_bitops): Define.
        * include/std/version (__cpp_lib_constexpr): Remove.
        (__cpp_lib_bitops, __cpp_lib_constexpr_dynamic_alloc): Define.
index ecc06178c3489d8ffba9c871555dfff0f5dd9aa2..411feba90e05d101b26674e5c83967af61a4f4ff 100644 (file)
@@ -809,7 +809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       typedef typename __traits_type::reference        reference;
       typedef typename __traits_type::pointer          pointer;
 
-#if __cplusplus > 201703L
+#if __cplusplus > 201703L && __cpp_lib_concepts
       using iterator_concept = std::__detail::__iter_concept<_Iterator>;
 #endif