Changes between Initial Version and Version 2 of Ticket #7278


Ignore:
Timestamp:
Aug 25, 2012, 10:53:02 AM (10 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7278

    • Property Owner changed from John Maddock to Beman Dawes
    • Property Component mathsystem
  • Ticket #7278 – Description

    initial v2  
    1 I'm adding BOOST_NOEXCEPT specification to Boost.Thread, and I can not complete it as Boost.System lacks this feature. Any plans to take care of this?
     1I'm adding BOOST_NOEXCEPT specification to Boost.Thread, and I can not complete it as Boost.System lacks this feature.
     2
     3{{{
     4    class error_category {
     5    public:
     6      virtual const char* name() const noexcept = 0;
     7      virtual error_condition default_error_condition(int ev) const noexcept;
     8      virtual bool equivalent(int code, const error_condition& condition) const noexcept;
     9      virtual bool equivalent(const error_code& code, int condition) const noexcept;
     10      bool operator==(const error_category& rhs) const noexcept;
     11      bool operator!=(const error_category& rhs) const noexcept;
     12      bool operator<(const error_category& rhs) const noexcept;
     13};
     14    const error_category& generic_category() noexcept;
     15    const error_category& system_category() noexcept;
     16
     17
     18    class error_code {
     19    public:
     20error_code() noexcept;
     21error_code(int val, const error_category& cat) noexcept;
     22template <class ErrorCodeEnum>
     23error_code(ErrorCodeEnum e) noexcept;
     24void assign(int val, const error_category& cat) noexcept;
     25template <class ErrorCodeEnum>
     26errorcode& operator=(ErrorCodeEnum e) noexcept;
     27void clear() noexcept;
     28int value() const noexcept;
     29const error_category& category() const noexcept;
     30error_condition default_error_condition() const noexcept;
     31explicit operator bool() const noexcept;
     32};
     33error_code make_error_code(errc e) noexcept;
     34bool operator<(const error_code& lhs, const error_code& rhs) noexcept;
     35
     36    class error_condition {
     37    public:
     38error_condition() noexcept;
     39error_condition(int val, const error_category& cat) noexcept; template <class ErrorConditionEnum>
     40error_condition(ErrorConditionEnum e) noexcept;
     41void assign(int val, const error_category& cat) noexcept; template<class ErrorConditionEnum>
     42error_condition& operator=(ErrorConditionEnum e) noexcept;
     43void clear() noexcept;
     44int value() const noexcept;
     45const error_category& category() const noexcept;
     46explicit operator bool() const noexcept;
     47
     48};
     49bool operator<(const error_condition& lhs, const error_condition& rhs) noexcept;
     50}}}
     51
     52
     53Any plans to take care of this?