libstdc++: Use C++98 syntax to instantiate input_iterator_tag
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 26 Nov 2019 19:23:11 +0000 (19:23 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 26 Nov 2019 19:23:11 +0000 (19:23 +0000)
* include/debug/helper_functions.h (__valid_range_aux): Use C++98
std::input_iterator_tag default constructor invocation.

From-SVN: r278731

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/helper_functions.h

index 8e384c765063728e98d2904b62925c2d409da6f7..23395b178d07231c1fdfaae4f02996364a4c43bf 100644 (file)
@@ -1,5 +1,8 @@
 2019-11-26  François Dumont  <fdumont@gcc.gnu.org>
 
+       * include/debug/helper_functions.h (__valid_range_aux): Use C++98
+       std::input_iterator_tag default constructor invocation.
+
        * include/debug/array (array<>::fill): Add C++20 constexpr.
        (array<>::swap): Likewise.
 
index ac93ee0472081c876f7132b557c26fa904841f17..0344f27143b1750bd22c44a600b05b6cf48c2c24 100644 (file)
@@ -168,7 +168,7 @@ namespace __gnu_debug
                      std::random_access_iterator_tag)
     {
       return
-       __valid_range_aux(__first, __last, std::input_iterator_tag{})
+       __valid_range_aux(__first, __last, std::input_iterator_tag())
        && __first <= __last;
     }
 
@@ -192,7 +192,7 @@ namespace __gnu_debug
                      typename _Distance_traits<_InputIterator>::__type& __dist,
                      std::__false_type)
     {
-      if (!__valid_range_aux(__first, __last, std::input_iterator_tag{}))
+      if (!__valid_range_aux(__first, __last, std::input_iterator_tag()))
        return false;
 
       __dist = __get_distance(__first, __last);