Fix gcc compilation

This commit is contained in:
Lukas Joswiak 2021-05-02 17:27:18 -07:00
parent 8dcd779fc4
commit f275fd3c32
3 changed files with 5 additions and 2 deletions

View File

@ -49,8 +49,8 @@ class Packer : public msgpack::packer<msgpack::sbuffer> {
populate_visitor_map<Tail...>::populate(map);
}
};
template <>
struct populate_visitor_map<> {
template <class Head>
struct populate_visitor_map<Head> {
static void populate(VisitorMap&) {}
};

View File

@ -77,6 +77,8 @@ constexpr std::string_view to_string(WaitState st) {
return "Network"sv;
case WaitState::Running:
return "Running"sv;
default:
return ""sv;
}
}

View File

@ -818,6 +818,7 @@ struct Role {
case ProcessClass::Worker:
return WORKER;
case ProcessClass::NoRole:
default:
ASSERT(false);
throw internal_error();
}