1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef BOOST_OUTCOME_SYSTEM_ERROR2_ERROR_HPP
- #define BOOST_OUTCOME_SYSTEM_ERROR2_ERROR_HPP
- #include "errored_status_code.hpp"
- #include "system_code.hpp"
- BOOST_OUTCOME_SYSTEM_ERROR2_NAMESPACE_BEGIN
- using error = erased_errored_status_code<system_code::value_type>;
- #ifndef NDEBUG
- static_assert(sizeof(error) == 2 * sizeof(void *), "error is not exactly two pointers in size!");
- static_assert(traits::is_move_bitcopying<error>::value, "error is not move bitcopying!");
- #endif
- BOOST_OUTCOME_SYSTEM_ERROR2_NAMESPACE_END
- #endif
|