summaryrefslogtreecommitdiff
path: root/src/mongo/executor/remote_command_response.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-02-27 09:41:21 -0500
committerMathias Stearn <mathias@10gen.com>2017-02-28 11:58:12 -0500
commit2128f3a19f31ad31d97cb1ffec9a9320d641ff7c (patch)
treef574d01472512432cba9ca7365abacdaf8ffdd7b /src/mongo/executor/remote_command_response.cpp
parenteed20a127f756ce537b9f33d83d4eb99f5d2ca0f (diff)
downloadmongo-2128f3a19f31ad31d97cb1ffec9a9320d641ff7c.tar.gz
SERVER-28134 Move operator<<(ostream, RemoteCommandRequest/Response) into executor namespace
This avoids clang errors if unittest.h is included before these headers.
Diffstat (limited to 'src/mongo/executor/remote_command_response.cpp')
-rw-r--r--src/mongo/executor/remote_command_response.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/executor/remote_command_response.cpp b/src/mongo/executor/remote_command_response.cpp
index b3b6832e973..4fb8af3ccf2 100644
--- a/src/mongo/executor/remote_command_response.cpp
+++ b/src/mongo/executor/remote_command_response.cpp
@@ -109,10 +109,9 @@ bool RemoteCommandResponse::operator!=(const RemoteCommandResponse& rhs) const {
return !(*this == rhs);
}
-} // namespace executor
-
-std::ostream& operator<<(std::ostream& os, const executor::RemoteCommandResponse& response) {
+std::ostream& operator<<(std::ostream& os, const RemoteCommandResponse& response) {
return os << response.toString();
}
+} // namespace executor
} // namespace mongo