Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit d5b8469

Browse files
committed
Swap Result constructor constraint arguments
1 parent 94226cc commit d5b8469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/common/result.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Result<T, Errs...> {
3434
* @param value Value to initialize the result with.
3535
*/
3636
template<typename U>
37-
requires std::convertible_to<T, U>
37+
requires std::convertible_to<U, T>
3838
constexpr Result(U&& value)
3939
: error(std::monostate()),
4040
value(std::forward<U>(value)) {}

0 commit comments

Comments
 (0)