Changeset 85076 in vbox for trunk/include
- Timestamp:
- Jul 6, 2020 8:59:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/errcore.h
r84063 r85076 133 133 * @param rcObj IPRT status code object from an automatic cast. 134 134 */ 135 RTErrStrictType(RTErrStrictType2 const rcObj) 135 RTErrStrictType(RTErrStrictType2 const rcObj) RT_NO_THROW_DEF 136 136 : m_rc(rcObj.getValue()) 137 137 { … … 143 143 * @param rc IPRT style status code. 144 144 */ 145 RTErrStrictType(int32_t rc) 145 RTErrStrictType(int32_t rc) RT_NO_THROW_DEF 146 146 : m_rc(rc) 147 147 { … … 163 163 * Test for success. 164 164 */ 165 bool success() const 165 bool success() const RT_NO_THROW_DEF 166 166 { 167 167 return m_rc >= 0; … … 171 171 /** @name Try ban a number of wrong types. 172 172 * @{ */ 173 RTErrStrictType(uint8_t rc) 174 RTErrStrictType(uint16_t rc) 175 RTErrStrictType(uint32_t rc) 176 RTErrStrictType(uint64_t rc) 177 RTErrStrictType(int8_t rc) 178 RTErrStrictType(int16_t rc) 179 RTErrStrictType(int64_t rc) 173 RTErrStrictType(uint8_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 174 RTErrStrictType(uint16_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 175 RTErrStrictType(uint32_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 176 RTErrStrictType(uint64_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 177 RTErrStrictType(int8_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 178 RTErrStrictType(int16_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 179 RTErrStrictType(int64_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); } 180 180 /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */ 181 181 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.