Commit 2eb57e54 by Jonathan Wakely Committed by Jonathan Wakely

Remove redundant conditional expressions in <system_error>

	* include/std/system_error (error_code::operator bool(),
	error_condition::operator bool()): Remove redundant conditional
	expression.

From-SVN: r227871
parent 99f04955
2015-09-17 Jonathan Wakely <jwakely@redhat.com>
* include/std/system_error (error_code::operator bool(),
error_condition::operator bool()): Remove redundant conditional
expression.
* include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
Do nothing if exceptions are disabled.
* include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
......
......@@ -181,7 +181,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return category().message(value()); }
explicit operator bool() const noexcept
{ return _M_value != 0 ? true : false; }
{ return _M_value != 0; }
// DR 804.
private:
......@@ -257,7 +257,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return category().message(value()); }
explicit operator bool() const noexcept
{ return _M_value != 0 ? true : false; }
{ return _M_value != 0; }
// DR 804.
private:
......
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