From 5fd2cfac8e253d64c8fd65826bb9d6f15cb46810 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 15 Apr 2025 14:37:40 -0400 Subject: [PATCH] MT#62181 AmArg: fix variant access You can't get get() to assign a new value Change-Id: Idfb90b0f2defb24f531fca88b7d38e53b17cc766 --- core/AmArg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmArg.cpp b/core/AmArg.cpp index ec0d3024..529982af 100644 --- a/core/AmArg.cpp +++ b/core/AmArg.cpp @@ -94,7 +94,7 @@ void AmArg::assertArray() { return; if (Undef == type) { type = Array; - std::get(value) = new ValueArray(); + value = new ValueArray(); return; } throw TypeMismatchException(); @@ -109,7 +109,7 @@ void AmArg::assertArray(size_t s) { if (Undef == type) { type = Array; - std::get(value) = new ValueArray(); + value = new ValueArray(); } else if (Array != type) { throw TypeMismatchException(); }