| 140 | } |
| 141 | |
| 142 | template<class ErrorCodeEnum> error_code( ErrorCodeEnum e, source_location const * loc, |
| 143 | typename detail::enable_if<is_error_code_enum<ErrorCodeEnum>::value>::type* = 0 ) BOOST_NOEXCEPT: |
| 144 | d1_(), lc_flags_( 0 ) |
| 145 | { |
| 146 | error_code e2 = make_error_code( e ); |
| 147 | |
| 148 | if( e2.lc_flags_ == 0 || e2.lc_flags_ == 1 ) |
| 149 | { |
| 150 | *this = e2; |
| 151 | } |
| 152 | else |
| 153 | { |
| 154 | *this = error_code( e2.d1_.val_, *e2.d1_.cat_, loc ); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) |
| 159 |
no test coverage detected