summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/streambuf_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/bits/streambuf_iterator.h')
-rw-r--r--libstdc++-v3/include/bits/streambuf_iterator.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libstdc++-v3/include/bits/streambuf_iterator.h b/libstdc++-v3/include/bits/streambuf_iterator.h
index c743bb311ba..26cc00f8b22 100644
--- a/libstdc++-v3/include/bits/streambuf_iterator.h
+++ b/libstdc++-v3/include/bits/streambuf_iterator.h
@@ -157,11 +157,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
/// Return true both iterators are end or both are not end.
bool
equal(const istreambuf_iterator& __b) const
- {
- const bool __thiseof = _M_at_eof();
- const bool __beof = __b._M_at_eof();
- return ((__thiseof && __beof) || (!__thiseof && !__beof));
- }
+ { return _M_at_eof() == __b._M_at_eof(); }
private:
int_type
OpenPOWER on IntegriCloud