Skip to content

Commit f6b792e

Browse files
committed
Don't move in const case
1 parent b376e51 commit f6b792e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/function2/function2.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ struct box<false, T, Allocator> : private Allocator {
397397
T value_;
398398

399399
explicit box(const T& value, Allocator allocator_)
400-
: Allocator(std::move(allocator_)), value_(std::move(value)) {
400+
: Allocator(std::move(allocator_)), value_(value) {
401401
}
402402

403403
explicit box(T&& value, Allocator allocator_)

0 commit comments

Comments
 (0)