* include/std/system_error (error_code::operator bool(),
error_condition::operator bool()): Remove redundant conditional
expression.
From-SVN: r227871
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.
{ return category().message(value()); }
explicit operator bool() const noexcept
- { return _M_value != 0 ? true : false; }
+ { return _M_value != 0; }
// DR 804.
private:
{ return category().message(value()); }
explicit operator bool() const noexcept
- { return _M_value != 0 ? true : false; }
+ { return _M_value != 0; }
// DR 804.
private: