Commit 182e5035 authored by ivan1993br's avatar ivan1993br

Modify reactor.cc to c++14

parent 5f911e35
......@@ -342,11 +342,11 @@ public:
std::vector<std::shared_ptr<Handler>>
handlers(const Reactor::Key &key) const override {
const auto [idx, marker] = decodeKey(key);
if (marker != KeyMarker)
const std::pair<uint32_t, uint32_t> idx_marker = decodeKey(key);
if (idx_marker.second != KeyMarker)
throw std::runtime_error("Invalid key");
Reactor::Key originalKey(idx);
Reactor::Key originalKey(idx_marker.first);
std::vector<std::shared_ptr<Handler>> res;
res.reserve(workers_.size());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment