The following code produces as error:
Variant[string] aa;
auto value = aa.require("key", Variant("value"));
Output:
`(*p).opAssign(value())` is not an lvalue and cannot be modified
Removing 'ref' from the function's definition allows it to compile but I'm assuming there's a reason for the ref return.
Comment #1 by robert.schadek — 2024-12-07T13:39:41Z