diff options
author | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
commit | 3a33e128961e7ea4bd584639ba393d056bec3d23 (patch) | |
tree | a1ad9cb2ca67541a90a61b0723c7040191484356 /src/mac/x919_mac | |
parent | 0e718e402cb58c5ccfe538dfe36962c73a223d3a (diff) |
Add deleted copy constructors/assignment operators where appropriate.
Replace C++98 style private copy constructors/assignment ops with ones
annotated with delete.
Diffstat (limited to 'src/mac/x919_mac')
-rw-r--r-- | src/mac/x919_mac/x919_mac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mac/x919_mac/x919_mac.h b/src/mac/x919_mac/x919_mac.h index 4b5e63b33..b7b7d685e 100644 --- a/src/mac/x919_mac/x919_mac.h +++ b/src/mac/x919_mac/x919_mac.h @@ -33,6 +33,10 @@ class BOTAN_DLL ANSI_X919_MAC : public MessageAuthenticationCode * @param cipher the underlying block cipher to use */ ANSI_X919_MAC(BlockCipher* cipher); + + ANSI_X919_MAC(const ANSI_X919_MAC&) = delete; + ANSI_X919_MAC& operator=(const ANSI_X919_MAC&) = delete; + ~ANSI_X919_MAC(); private: void add_data(const byte[], size_t); |