We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
swap
1 parent d689323 commit dac8c7aCopy full SHA for dac8c7a
include/bencode.hpp
@@ -65,12 +65,12 @@ namespace bencode {
65
return *this;
66
}
67
68
- map_proxy operator =(const map_proxy &&rhs) {
+ map_proxy operator =(map_proxy &&rhs) {
69
*proxy_ = std::move(*rhs.proxy_);
70
71
72
73
- void swap(const map_proxy &rhs) { proxy_->swap(*rhs.proxy_); }
+ void swap(map_proxy &rhs) { proxy_->swap(*rhs.proxy_); }
74
75
operator map_type &() { return *proxy_; };
76
operator const map_type &() const { return *proxy_; };
0 commit comments