summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-11-17 12:44:36 +0100
committerGitHub <noreply@github.com>2021-11-17 12:44:36 +0100
commita9009a71ea2efb411178134756dd2855412938f8 (patch)
treeadff132ce76ad3819885199dcce33d064d84a10f
parent3f3a9cdc288f6f2c324a2bce1e679811a62d7efe (diff)
parent9c8d9546e0124a8afb6bf2fc26e8c404adec3c27 (diff)
Merge pull request #20058 from vespa-engine/toregge/add-noexcept-specifier-to-node-supported-features-repo-constructor
Add noexcept specifier to NodeSupportedFeaturesRepo constructor.
-rw-r--r--storage/src/vespa/storage/distributor/node_supported_features_repo.cpp2
-rw-r--r--storage/src/vespa/storage/distributor/node_supported_features_repo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/distributor/node_supported_features_repo.cpp b/storage/src/vespa/storage/distributor/node_supported_features_repo.cpp
index e125f360cec..2e5335c012a 100644
--- a/storage/src/vespa/storage/distributor/node_supported_features_repo.cpp
+++ b/storage/src/vespa/storage/distributor/node_supported_features_repo.cpp
@@ -9,7 +9,7 @@ NodeSupportedFeaturesRepo::NodeSupportedFeaturesRepo() = default;
NodeSupportedFeaturesRepo::NodeSupportedFeaturesRepo(
vespalib::hash_map<uint16_t, NodeSupportedFeatures> features,
- PrivateCtorTag)
+ PrivateCtorTag) noexcept
: _node_features(std::move(features))
{}
diff --git a/storage/src/vespa/storage/distributor/node_supported_features_repo.h b/storage/src/vespa/storage/distributor/node_supported_features_repo.h
index cc40c27b8e2..2167858ad28 100644
--- a/storage/src/vespa/storage/distributor/node_supported_features_repo.h
+++ b/storage/src/vespa/storage/distributor/node_supported_features_repo.h
@@ -20,7 +20,7 @@ class NodeSupportedFeaturesRepo {
public:
NodeSupportedFeaturesRepo();
- NodeSupportedFeaturesRepo(vespalib::hash_map<uint16_t, NodeSupportedFeatures> features, PrivateCtorTag);
+ NodeSupportedFeaturesRepo(vespalib::hash_map<uint16_t, NodeSupportedFeatures> features, PrivateCtorTag) noexcept;
~NodeSupportedFeaturesRepo();
// Returns supported node features for node with distribution key node_idx, or a default feature set