Opened 10 years ago
Last modified 10 years ago
#7278 closed Feature Requests
Add noexcept to conform with C++11 — at Version 2
Reported by: | viboes | Owned by: | Beman Dawes |
---|---|---|---|
Milestone: | Boost 1.54.0 | Component: | system |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: |
Description (last modified by )
I'm adding BOOST_NOEXCEPT specification to Boost.Thread, and I can not complete it as Boost.System lacks this feature.
class error_category { public: virtual const char* name() const noexcept = 0; virtual error_condition default_error_condition(int ev) const noexcept; virtual bool equivalent(int code, const error_condition& condition) const noexcept; virtual bool equivalent(const error_code& code, int condition) const noexcept; bool operator==(const error_category& rhs) const noexcept; bool operator!=(const error_category& rhs) const noexcept; bool operator<(const error_category& rhs) const noexcept; }; const error_category& generic_category() noexcept; const error_category& system_category() noexcept; class error_code { public: error_code() noexcept; error_code(int val, const error_category& cat) noexcept; template <class ErrorCodeEnum> error_code(ErrorCodeEnum e) noexcept; void assign(int val, const error_category& cat) noexcept; template <class ErrorCodeEnum> errorcode& operator=(ErrorCodeEnum e) noexcept; void clear() noexcept; int value() const noexcept; const error_category& category() const noexcept; error_condition default_error_condition() const noexcept; explicit operator bool() const noexcept; }; error_code make_error_code(errc e) noexcept; bool operator<(const error_code& lhs, const error_code& rhs) noexcept; class error_condition { public: error_condition() noexcept; error_condition(int val, const error_category& cat) noexcept; template <class ErrorConditionEnum> error_condition(ErrorConditionEnum e) noexcept; void assign(int val, const error_category& cat) noexcept; template<class ErrorConditionEnum> error_condition& operator=(ErrorConditionEnum e) noexcept; void clear() noexcept; int value() const noexcept; const error_category& category() const noexcept; explicit operator bool() const noexcept; }; bool operator<(const error_condition& lhs, const error_condition& rhs) noexcept;
Any plans to take care of this?
Change History (2)
comment:1 by , 10 years ago
Component: | math → system |
---|---|
Owner: | changed from | to
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.