diff options
-rw-r--r-- | document/src/vespa/document/base/globalid.h | 2 |
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. |