Skip to content
Snippets Groups Projects
Commit 99514e11 authored by Franck Dary's avatar Franck Dary
Browse files

Fixed bug in backtrack

parent de5fe7fa
No related branches found
No related tags found
No related merge requests found
......@@ -507,7 +507,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
if (ProgramParameters::debug)
fprintf(stderr, "classifierName = <%s>\n", classifierName.c_str());
static auto undoOneTime = [classifierName](Config & c)
static auto undoOneTime = [](Config & c, const std::string & classifierName)
{
if (ProgramParameters::debug)
fprintf(stderr, "classifierName = <%s>\n", classifierName.c_str());
......@@ -524,7 +524,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
}
};
static auto undoForReal = [classifierName](Config & c)
static auto undoForReal = [](Config & c, const std::string & classifierName)
{
if (ProgramParameters::debug)
fprintf(stderr, "classifierName = <%s>\n", classifierName.c_str());
......@@ -544,11 +544,11 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
}
};
undoOneTime(c);
undoOneTime(c, classifierName);
for (int i = 0; i < dist-1; i++)
undoOneTime(c);
undoOneTime(c, classifierName);
undoForReal(c);
undoForReal(c, classifierName);
};
auto undo = [dist](Config &, Action::BasicAction &)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment