From 20b1b640b336fa380046537c0adbcf11a28e49c7 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 28 Sep 2024 22:30:52 +0000 Subject: [PATCH] Fix Variable creation using user-defined literal for For function --- omnn/math/Valuable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnn/math/Valuable.cpp b/omnn/math/Valuable.cpp index 00aa4cbe0..4467f51f9 100644 --- a/omnn/math/Valuable.cpp +++ b/omnn/math/Valuable.cpp @@ -2707,7 +2707,7 @@ bool Valuable::SerializedStrEqual(const std::string_view& s) const { { // Create a vars_cont_t map with the initial value vars_cont_t variables; - variables[Variable("x")] = initialValue; // Assuming 'x' as the variable name + variables["x"_va] = initialValue; // Assuming 'x' as the variable name // Apply the lambda using the Eval function with the variables map return lambda.Eval(variables); }