diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-02-04 12:40:59 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-02-04 15:52:21 -0500 |
commit | eb305dd9927cb781e9b01d92f1d59058c71380f8 (patch) | |
tree | aaa6dab3e8e503c007a8ce9d37bdde91321b78a1 /src/mongo/client/sasl_client_session.cpp | |
parent | 51e8eee65cdff953b283fe0b9bb3515e298a0e83 (diff) | |
download | mongo-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.cpp | 2 |
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) { |