| 124 | } |
| 125 | |
| 126 | struct category_holder |
| 127 | { |
| 128 | category_holder(boost::system::error_category const& cat) : m_cat(&cat) {} |
| 129 | char const* name() const { return m_cat->name(); } |
| 130 | std::string message(int const v) const { return m_cat->message(v); } |
| 131 | |
| 132 | friend bool operator==(category_holder const lhs, category_holder const rhs) |
| 133 | { return *lhs.m_cat == *rhs.m_cat; } |
| 134 | |
| 135 | friend bool operator!=(category_holder const lhs, category_holder const rhs) |
| 136 | { return *lhs.m_cat != *rhs.m_cat; } |
| 137 | |
| 138 | friend bool operator<(category_holder const lhs, category_holder const rhs) |
| 139 | { return *lhs.m_cat < *rhs.m_cat; } |
| 140 | |
| 141 | boost::system::error_category const& ref() const { return *m_cat; } |
| 142 | operator boost::system::error_category const&() const { return *m_cat; } |
| 143 | private: |
| 144 | boost::system::error_category const* m_cat; |
| 145 | }; |
| 146 | |
| 147 | void error_code_assign(boost::system::error_code& me, int const v, category_holder const cat) |
| 148 | { |
no outgoing calls
no test coverage detected