summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2020-05-21 10:02:13 -0400
committerNat Goodspeed <nat@lindenlab.com>2020-05-21 10:02:13 -0400
commitd81a58423edfde297a333bb67ea25f69a5cc5f2e (patch)
tree01619b8e33165dc30861dd401af374d8fff256fa
parent0c520c7a896a27880a9ddaf0d219e5ae1a084047 (diff)
DRTVWR-476: Support older compilers with LockMessageReader.
-rw-r--r--indra/llmessage/message.h6
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;