We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09de035 + 1f198d4 commit b250ddcCopy full SHA for b250ddc
src/cegis/cegis-util/program_helper.cpp
@@ -348,8 +348,8 @@ goto_programt::targett insert_after_preserving_source_location(
348
goto_programt::targett insert_before_preserving_source_location(
349
goto_programt &body, goto_programt::targett pos)
350
{
351
- const auto op=std::bind1st(std::mem_fun(&goto_programt::insert_before),
352
- &body);
+ typedef goto_programt::targett(goto_programt::*ftype)(goto_programt::targett);
+ const auto op=std::bind1st(std::mem_fun(static_cast<ftype>(&goto_programt::insert_before)), &body);
353
return insert_preserving_source_location(pos, op);
354
}
355
0 commit comments