Skip to content

Commit dac8c7a

Browse files
committed
swap and move-assignment shouldn't take const arguments
1 parent d689323 commit dac8c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bencode.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace bencode {
6565
return *this;
6666
}
6767

68-
map_proxy operator =(const map_proxy &&rhs) {
68+
map_proxy operator =(map_proxy &&rhs) {
6969
*proxy_ = std::move(*rhs.proxy_);
7070
return *this;
7171
}
7272

73-
void swap(const map_proxy &rhs) { proxy_->swap(*rhs.proxy_); }
73+
void swap(map_proxy &rhs) { proxy_->swap(*rhs.proxy_); }
7474

7575
operator map_type &() { return *proxy_; };
7676
operator const map_type &() const { return *proxy_; };

0 commit comments

Comments
 (0)