summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-20 13:14:55 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-20 15:14:45 -0400
commit39e01c76694ed4b9cdd8315dab56ecf19f099af1 (patch)
tree89cce182121f248a9f96b60b5f894b192c1bc298 /src
parent2aeb5a17b1ee4d22036491da1052a4e0b3c88874 (diff)
downloadmongo-39e01c76694ed4b9cdd8315dab56ecf19f099af1.tar.gz
SERVER-17638 Fix StatusWith comparison operators
Diffstat (limited to 'src')
-rw-r--r--src/mongo/base/status_with.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/base/status_with.h b/src/mongo/base/status_with.h
index 0120ff3ae0c..900dac70745 100644
--- a/src/mongo/base/status_with.h
+++ b/src/mongo/base/status_with.h
@@ -184,22 +184,22 @@ namespace mongo {
//
template<typename T>
- bool operator==(const StatusWith<T>& sw, const ErrorCodes& code) {
+ bool operator==(const StatusWith<T>& sw, const ErrorCodes::Error code) {
return sw.getStatus() == code;
}
template<typename T>
- bool operator==(const ErrorCodes::Error& code, const StatusWith<T>& sw) {
+ bool operator==(const ErrorCodes::Error code, const StatusWith<T>& sw) {
return code == sw.getStatus();
}
template<typename T>
- bool operator!=(const StatusWith<T>& sw, const ErrorCodes::Error& code) {
+ bool operator!=(const StatusWith<T>& sw, const ErrorCodes::Error code) {
return !(sw == code);
}
template<typename T>
- bool operator!=(const ErrorCodes::Error& code, const StatusWith<T>& sw) {
+ bool operator!=(const ErrorCodes::Error code, const StatusWith<T>& sw) {
return !(code == sw);
}