Skip to content
Snippets Groups Projects
Commit a2256659 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

proxy client: fix building Listener map

parent f9b22855
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,8 @@ struct DhtProxyClient::OperationState { ...@@ -40,9 +40,8 @@ struct DhtProxyClient::OperationState {
struct DhtProxyClient::Listener struct DhtProxyClient::Listener
{ {
explicit Listener(OpValueCache&& c): Listener(OpValueCache&& c):
cache(std::move(c)) cache(std::move(c)) {}
{}
OpValueCache cache; OpValueCache cache;
CacheValueCallback cb; CacheValueCallback cb;
......
...@@ -33,7 +33,7 @@ struct OpCacheValueStorage ...@@ -33,7 +33,7 @@ struct OpCacheValueStorage
class OpValueCache { class OpValueCache {
public: public:
explicit OpValueCache(ValueCallback&& cb) noexcept : callback(std::forward<ValueCallback>(cb)) {} OpValueCache(ValueCallback&& cb) noexcept : callback(std::forward<ValueCallback>(cb)) {}
explicit OpValueCache(OpValueCache&& o) noexcept : values(std::move(o.values)), callback(std::move(o.callback)) { explicit OpValueCache(OpValueCache&& o) noexcept : values(std::move(o.values)), callback(std::move(o.callback)) {
o.callback = {}; o.callback = {};
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment