Commit e32b9ce4 by François Dumont

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.

From-SVN: r278731
parent 1e89ab6c
2019-11-26 François Dumont <fdumont@gcc.gnu.org> 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. * include/debug/array (array<>::fill): Add C++20 constexpr.
(array<>::swap): Likewise. (array<>::swap): Likewise.
......
...@@ -168,7 +168,7 @@ namespace __gnu_debug ...@@ -168,7 +168,7 @@ namespace __gnu_debug
std::random_access_iterator_tag) std::random_access_iterator_tag)
{ {
return return
__valid_range_aux(__first, __last, std::input_iterator_tag{}) __valid_range_aux(__first, __last, std::input_iterator_tag())
&& __first <= __last; && __first <= __last;
} }
...@@ -192,7 +192,7 @@ namespace __gnu_debug ...@@ -192,7 +192,7 @@ namespace __gnu_debug
typename _Distance_traits<_InputIterator>::__type& __dist, typename _Distance_traits<_InputIterator>::__type& __dist,
std::__false_type) 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; return false;
__dist = __get_distance(__first, __last); __dist = __get_distance(__first, __last);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment