12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef BOOST_OUTCOME_SYSTEM_ERROR2_SYSTEM_CODE_HPP
- #define BOOST_OUTCOME_SYSTEM_ERROR2_SYSTEM_CODE_HPP
- #ifndef BOOST_OUTCOME_SYSTEM_ERROR2_NOT_POSIX
- #include "posix_code.hpp"
- #else
- #include "quick_status_code_from_enum.hpp"
- #endif
- #if defined(_WIN32) || defined(BOOST_OUTCOME_STANDARDESE_IS_IN_THE_HOUSE)
- #include "nt_code.hpp"
- #include "win32_code.hpp"
- #endif
- BOOST_OUTCOME_SYSTEM_ERROR2_NAMESPACE_BEGIN
- using system_code = erased_status_code<intptr_t>;
- #ifndef NDEBUG
- static_assert(sizeof(system_code) == 2 * sizeof(void *), "system_code is not exactly two pointers in size!");
- static_assert(traits::is_move_bitcopying<system_code>::value, "system_code is not move bitcopying!");
- #endif
- BOOST_OUTCOME_SYSTEM_ERROR2_NAMESPACE_END
- #endif
|