mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 09:44:57 +08:00
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
This commit is contained in:
parent
1e89ab6ce5
commit
e32b9ce4d5
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user