Commit 5fad0003 by Jonathan Wakely

libstdc++: Add 'typename' to fix compilation with Clang

	* include/bits/ranges_algo.h (shift_right): Add 'typename' to
	dependent type.
parent c9d92a57
2020-03-02 Jonathan Wakely <jwakely@redhat.com>
* include/bits/ranges_algo.h (shift_right): Add 'typename' to
dependent type.
2020-03-01 H.J. Lu <hongjiu.lu@intel.com> 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated. * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
......
...@@ -3710,7 +3710,7 @@ namespace ranges ...@@ -3710,7 +3710,7 @@ namespace ranges
if (__n == 0) if (__n == 0)
return __first; return __first;
using _Cat = iterator_traits<ForwardIterator>::iterator_category; using _Cat = typename iterator_traits<ForwardIterator>::iterator_category;
if constexpr (derived_from<_Cat, bidirectional_iterator_tag>) if constexpr (derived_from<_Cat, bidirectional_iterator_tag>)
{ {
auto __mid = ranges::next(__last, -__n, __first); auto __mid = ranges::next(__last, -__n, __first);
......
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