summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-06 22:36:27 +0200
committerGitHub <noreply@github.com>2020-10-06 22:36:27 +0200
commit1c3d83a0499b854887e8a998cc33dd1101519738 (patch)
treea430e861a4146e509f9a93697d6582f02e28f4ad
parent6c9ec499d0c00385220c275361e4b1fc0ff99aa6 (diff)
parent98eb7949d8a972e5c4098185f514778dda17519f (diff)
Merge pull request #14744 from vespa-engine/toregge/add-nonexcept-specifier-to-globalid-assignment-operator
Add noexcept specifier to GlobalId assignment operator.
-rw-r--r--document/src/vespa/document/base/globalid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/base/globalid.h b/document/src/vespa/document/base/globalid.h
index 7e49b1b22cb..391ed3a892a 100644
--- a/document/src/vespa/document/base/globalid.h
+++ b/document/src/vespa/document/base/globalid.h
@@ -97,7 +97,7 @@ public:
* @param other The global id whose value to copy to this.
* @return This.
*/
- GlobalId& operator=(const GlobalId& other) { memcpy(_gid._buffer, other._gid._buffer, sizeof(_gid._buffer)); return *this; }
+ GlobalId& operator=(const GlobalId& other) noexcept { memcpy(_gid._buffer, other._gid._buffer, sizeof(_gid._buffer)); return *this; }
/**
* Implements the equality operator.