aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-10-06 20:40:13 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-10-06 20:40:13 +0200
commit98eb7949d8a972e5c4098185f514778dda17519f (patch)
tree404b11c851046ccded5ec93cea13fa061a7e6f78
parentd42f89d160cd0419e96bc7880fa6c8f6e2e6df24 (diff)
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.