aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2019-11-26 19:23:11 +0000
committerFrançois Dumont <fdumont@gcc.gnu.org>2019-11-26 19:23:11 +0000
commit2361b950d2a00dc2415354f18c5b445460c1ac2f (patch)
treecbcd974802e06e28ed13b96ace42de1337dceda0
parentb7e69ccc0bdadd7dc136037032e60706b3bace38 (diff)
libstdc++: Use C++98 syntax to instantiate input_iterator_tag
* include/debug/helper_functions.h (__valid_range_aux): Use C++98 std::input_iterator_tag default constructor invocation. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278731 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/include/debug/helper_functions.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8e384c76506..23395b178d0 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/debug/helper_functions.h b/libstdc++-v3/include/debug/helper_functions.h
index ac93ee04720..0344f27143b 100644
--- a/libstdc++-v3/include/debug/helper_functions.h
+++ b/libstdc++-v3/include/debug/helper_functions.h
@@ -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);