diff options
Diffstat (limited to 'indra/llmessage/message.h')
-rw-r--r-- | indra/llmessage/message.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llmessage/message.h b/indra/llmessage/message.h index a3f2829ece..52dbf871db 100644 --- a/indra/llmessage/message.h +++ b/indra/llmessage/message.h @@ -256,14 +256,16 @@ private: class LockMessageReader { public: - // Because LockMessageReader contains LLCoros::LockType, it is already - // move-only. No need to delete the copy constructor or copy assignment. LockMessageReader(LLMessageReaderPointer& var, LLMessageReader* instance): mVar(var.mPtr), mLock(var.mMutex) { mVar = instance; } + // Some compilers reportedly fail to suppress generating implicit copy + // operations even though we have a move-only LockType data member. + LockMessageReader(const LockMessageReader&) = delete; + LockMessageReader& operator=(const LockMessageReader&) = delete; ~LockMessageReader() { mVar = nullptr; |