File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/ystdlib/error_handling Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 11#ifndef YSTDLIB_ERROR_HANDLING_RESULT_HPP
22#define YSTDLIB_ERROR_HANDLING_RESULT_HPP
33
4- #include < system_error>
5-
64#include < boost/outcome/config.hpp>
75#include < boost/outcome/std_result.hpp>
86#include < boost/outcome/success_failure.hpp>
97#include < boost/outcome/try.hpp>
8+ #include < system_error>
109
1110namespace ystdlib ::error_handling {
1211/* *
@@ -19,16 +18,16 @@ namespace ystdlib::error_handling {
1918 * @tparam ReturnType The type returned on success.
2019 * @tparam ErrorType The type used to represent errors.
2120 */
22- template <typename ReturnType, typename ErrorType = std::error_code>
23- using Result = BOOST_OUTCOME_V2_NAMESPACE::std_result<ReturnType, ErrorType>;
21+ template <typename ReturnType, typename ErrorType = std::error_code>
22+ using Result = BOOST_OUTCOME_V2_NAMESPACE::std_result<ReturnType, ErrorType>;
2423
2524/* *
2625 * @return A value indicating successful completion of a function that returns a void result (i.e.,
2726 * `Result<void, E>`).
2827 */
29- [[nodiscard]] inline auto success () -> BOOST_OUTCOME_V2_NAMESPACE::success_type<void> {
30- return BOOST_OUTCOME_V2_NAMESPACE::success ();
31- }
28+ [[nodiscard]] inline auto success () -> BOOST_OUTCOME_V2_NAMESPACE::success_type<void> {
29+ return BOOST_OUTCOME_V2_NAMESPACE::success ();
30+ }
3231
3332/* *
3433 * A function-style macro that emulates Rust’s try (`?`) operator for error propagation.
You can’t perform that action at this time.
0 commit comments