Commit 572992c8 by Jonathan Wakely

libstdc++ Fix missing return in istream_view iterator

	* include/std/ranges (iota_view): Add braces to prevent -Wempty-body
	warning.
	(basic_istream_view::_Iterator::operator++()): Add missing return.
parent a04f635d
2020-02-07 Jonathan Wakely <jwakely@redhat.com>
* include/std/ranges (iota_view): Add braces to prevent -Wempty-body
warning.
(basic_istream_view::_Iterator::operator++()): Add missing return.
2020-02-07 Patrick Palka <ppalka@redhat.com> 2020-02-07 Patrick Palka <ppalka@redhat.com>
* include/bits/ranges_algo.h: Remove extraneous &&. * include/bits/ranges_algo.h: Remove extraneous &&.
......
...@@ -872,7 +872,9 @@ namespace ranges ...@@ -872,7 +872,9 @@ namespace ranges
: _M_value(__value), _M_bound(__bound) : _M_value(__value), _M_bound(__bound)
{ {
if constexpr (totally_ordered_with<_Winc, _Bound>) if constexpr (totally_ordered_with<_Winc, _Bound>)
__glibcxx_assert( bool(__value <= __bound) ); {
__glibcxx_assert( bool(__value <= __bound) );
}
} }
constexpr _Iterator constexpr _Iterator
...@@ -1012,6 +1014,7 @@ namespace views ...@@ -1012,6 +1014,7 @@ namespace views
{ {
__glibcxx_assert(_M_parent->_M_stream != nullptr); __glibcxx_assert(_M_parent->_M_stream != nullptr);
*_M_parent->_M_stream >> _M_parent->_M_object; *_M_parent->_M_stream >> _M_parent->_M_object;
return *this;
} }
void void
......
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