Skip to content

Commit 1c00524

Browse files
committed
Bug#33307561 TlsLibraryContext should not be copy/movable
Issue ===== clang on windows warns: warning: definition of implicit copy assignment operator for 'TlsLibraryContext' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-dtor] Change ====== As the TlsLibaryContext should only be called and destructed once: - disable copy/move construction - disable copy/move assignment RB: 26946
1 parent 7aba067 commit 1c00524

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

router/src/harness/include/mysql/harness/tls_context.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ enum class TlsVerify { NONE, PEER };
6363
class HARNESS_TLS_EXPORT TlsLibraryContext {
6464
public:
6565
TlsLibraryContext();
66+
TlsLibraryContext(const TlsLibraryContext &) = delete;
67+
TlsLibraryContext(TlsLibraryContext &&) = delete;
68+
TlsLibraryContext &operator=(const TlsLibraryContext &) = delete;
69+
TlsLibraryContext &operator=(TlsLibraryContext &&) = delete;
6670
~TlsLibraryContext();
6771
};
6872

0 commit comments

Comments
 (0)