Skip to content

Commit afb5e98

Browse files
committed
Fix
1 parent 6a913df commit afb5e98

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/ystdlib/error_handling/Result.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
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

1110
namespace 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.

0 commit comments

Comments
 (0)