1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef BOOST_OUTCOME_POLICY_ALL_NARROW_HPP
- #define BOOST_OUTCOME_POLICY_ALL_NARROW_HPP
- #include "base.hpp"
- BOOST_OUTCOME_V2_NAMESPACE_EXPORT_BEGIN
- namespace policy
- {
-
- struct all_narrow : base
- {
- template <class Impl> static constexpr void wide_value_check(Impl &&self) { base::narrow_value_check(static_cast<Impl &&>(self)); }
- template <class Impl> static constexpr void wide_error_check(Impl &&self) { base::narrow_error_check(static_cast<Impl &&>(self)); }
- template <class Impl> static constexpr void wide_exception_check(Impl &&self) { base::narrow_exception_check(static_cast<Impl &&>(self)); }
- };
- }
- BOOST_OUTCOME_V2_NAMESPACE_END
- #endif
|