From a0c8c69950bc0aeaf9d02c5e7f897ed501335746 Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Wed, 4 Jun 2014 15:23:44 -0400 Subject: [PATCH] SERVER-14163 Include string header and std:: qualify string uses --- src/mongo/db/repl/member_state.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mongo/db/repl/member_state.h b/src/mongo/db/repl/member_state.h index 01761d19cf3..43c04e974b3 100644 --- a/src/mongo/db/repl/member_state.h +++ b/src/mongo/db/repl/member_state.h @@ -30,6 +30,8 @@ #pragma once +#include + namespace mongo { namespace repl { @@ -76,7 +78,7 @@ namespace repl { bool operator!=(const MemberState& r) const { return s != r.s; } }; - inline string MemberState::toString() const { + inline std::string MemberState::toString() const { switch ( s ) { case RS_STARTUP: return "STARTUP"; case RS_PRIMARY: return "PRIMARY";