diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-17 12:44:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 12:44:36 +0100 |
commit | a9009a71ea2efb411178134756dd2855412938f8 (patch) | |
tree | adff132ce76ad3819885199dcce33d064d84a10f | |
parent | 3f3a9cdc288f6f2c324a2bce1e679811a62d7efe (diff) | |
parent | 9c8d9546e0124a8afb6bf2fc26e8c404adec3c27 (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.cpp | 2 | ||||
-rw-r--r-- | storage/src/vespa/storage/distributor/node_supported_features_repo.h | 2 |
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 |