0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-14163 Include string header and std:: qualify string uses

This commit is contained in:
Andrew Morrow 2014-06-04 15:23:44 -04:00
parent 8b0d5c8793
commit a0c8c69950

View File

@ -30,6 +30,8 @@
#pragma once
#include <string>
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";