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>
* include/bits/ranges_algo.h: Remove extraneous &&.
......
......@@ -872,7 +872,9 @@ namespace ranges
: _M_value(__value), _M_bound(__bound)
{
if constexpr (totally_ordered_with<_Winc, _Bound>)
__glibcxx_assert( bool(__value <= __bound) );
{
__glibcxx_assert( bool(__value <= __bound) );
}
}
constexpr _Iterator
......@@ -1012,6 +1014,7 @@ namespace views
{
__glibcxx_assert(_M_parent->_M_stream != nullptr);
*_M_parent->_M_stream >> _M_parent->_M_object;
return *this;
}
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