summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2019-10-17 14:13:44 +0000
committerevergreen <evergreen@mongodb.com>2019-10-17 14:13:44 +0000
commit9c6751b9765d269b667324bb2efe1ca76a916d20 (patch)
tree78c84e167a000110e022ece5e72684cc388dfa4e /src/mongo
parentf8ede369fbf02fd7d16befc85c8740798fc2e2bf (diff)
downloadmongo-9c6751b9765d269b667324bb2efe1ca76a916d20.tar.gz
SERVER-44025 Ensure isNamedCode specializations have internal linakage
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/base/error_codes.tpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/base/error_codes.tpl.h b/src/mongo/base/error_codes.tpl.h
index 1e8ee83c21d..f3e58309c2b 100644
--- a/src/mongo/base/error_codes.tpl.h
+++ b/src/mongo/base/error_codes.tpl.h
@@ -151,7 +151,7 @@ template <int32_t code>
constexpr bool isNamedCode = false;
//#for $ec in $codes
template <>
-constexpr bool isNamedCode<ErrorCodes::$ec.name> = true;
+constexpr inline bool isNamedCode<ErrorCodes::$ec.name> = true;
//#end for
MONGO_COMPILER_NORETURN void throwExceptionForStatus(const Status& status);