Skip to content

Commit 2fba9c7

Browse files
committed
remove Result move constructor, as it's equivalent to the implicit move constructor
1 parent 326b332 commit 2fba9c7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/common/result.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ class Result {
5454
Result(U&& val)
5555
: val(std::forward<T>(val)) {}
5656

57-
Result(Result&& other)
58-
: val(std::move(other.val)),
59-
error(std::move(other.error)) {}
60-
6157
template<typename U, typename F>
6258
requires std::constructible_from<T, U> && std::constructible_from<ResultError<E>, F>
6359
Result(U&& val, F&& error)

0 commit comments

Comments
 (0)