Skip to content

Commit

Permalink
messages: Update MConfig.h to work without using namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Adam C. Emerson <[email protected]>
  • Loading branch information
adamemerson committed Mar 29, 2019
1 parent 982103a commit 5ee27ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/messages/MConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class MConfig : public MessageInstance<MConfig> {
static constexpr int HEAD_VERSION = 1;
static constexpr int COMPAT_VERSION = 1;

// use transparent comparator so we can lookup in it by string_view keys
std::map<string,string,std::less<>> config;
// use transparent comparator so we can lookup in it by std::string_view keys
std::map<std::string,std::string,std::less<>> config;

MConfig() : MessageInstance(MSG_CONFIG, HEAD_VERSION, COMPAT_VERSION) { }
MConfig(const std::map<std::string,std::string,std::less<>>& c)
Expand All @@ -26,7 +26,7 @@ class MConfig : public MessageInstance<MConfig> {
std::string_view get_type_name() const override {
return "config";
}
void print(ostream& o) const override {
void print(std::ostream& o) const override {
o << "config(" << config.size() << " keys" << ")";
}

Expand Down

0 comments on commit 5ee27ec

Please sign in to comment.