Skip to content

Commit

Permalink
Fix Variable creation using user-defined literal for For function
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] authored and ohhmm committed Sep 29, 2024
1 parent 5ab276e commit 20b1b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnn/math/Valuable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 20b1b64

Please sign in to comment.