diff options
author | Tad Marshall <tad@10gen.com> | 2012-12-22 07:31:28 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-12-22 07:31:28 -0500 |
commit | 50e1fe795f9c5ba121a04cd56458dc949f3503a2 (patch) | |
tree | 9112e98f743bc986d13349b334e1c2ccc74eaa2d /src/mongo | |
parent | 51e000daea784fcbca0573814792619acf4d18ae (diff) | |
download | mongo-50e1fe795f9c5ba121a04cd56458dc949f3503a2.tar.gz |
SERVER-7984 Fix Windows compile
Work around apparent MSVC compiler bug by explicitly casting from
'const char []' to 'const char*'.
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/s/config_upgrade.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/config_upgrade.cpp b/src/mongo/s/config_upgrade.cpp index 16d77c9c4bc..b22a7285238 100644 --- a/src/mongo/s/config_upgrade.cpp +++ b/src/mongo/s/config_upgrade.cpp @@ -260,8 +260,9 @@ namespace mongo { // versionString is the global version of this process if (isInMongoVersionRanges(versionString, excludedRanges)) { - *whyNot = stream() << "not compatible with current config version, " << "version " - << versionString << "has been excluded."; + *whyNot = stream() << "not compatible with current config version, version " + << reinterpret_cast<const char*>(versionString) + << "has been excluded."; return VersionStatus_Incompatible; } |