summaryrefslogtreecommitdiff
path: root/src/mongo/client/sasl_client_session.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-02-04 12:40:59 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-02-04 15:52:21 -0500
commiteb305dd9927cb781e9b01d92f1d59058c71380f8 (patch)
treeaaa6dab3e8e503c007a8ce9d37bdde91321b78a1 /src/mongo/client/sasl_client_session.cpp
parent51e8eee65cdff953b283fe0b9bb3515e298a0e83 (diff)
downloadmongo-eb305dd9927cb781e9b01d92f1d59058c71380f8.tar.gz
SERVER-12609 Make the cast from scoped_array to bool explicit.
In Boost 1.55.0, the bool operator of scoped_array was made 'explicit' and compilation of the enterprise client is now failing, because we are casting implicitly.
Diffstat (limited to 'src/mongo/client/sasl_client_session.cpp')
-rw-r--r--src/mongo/client/sasl_client_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/sasl_client_session.cpp b/src/mongo/client/sasl_client_session.cpp
index de841d27461..d1b14578bac 100644
--- a/src/mongo/client/sasl_client_session.cpp
+++ b/src/mongo/client/sasl_client_session.cpp
@@ -233,7 +233,7 @@ namespace {
bool SaslClientSession::hasParameter(Parameter id) {
if (id < 0 || id >= numParameters)
return false;
- return _parameters[id].data;
+ return static_cast<bool>(_parameters[id].data);
}
StringData SaslClientSession::getParameter(Parameter id) {