X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..081a38309c637c51f527b507704b65d6ce1ac805:/include/xbt/automaton.hpp diff --git a/include/xbt/automaton.hpp b/include/xbt/automaton.hpp index 58fdd7553c..b9bea1e7fb 100644 --- a/include/xbt/automaton.hpp +++ b/include/xbt/automaton.hpp @@ -21,7 +21,7 @@ namespace xbt { */ template xbt_automaton_propositional_symbol_t add_proposition(const_xbt_automaton_t a, const char* id, F f) { - F* callback = new F(std::move(f)); + auto* callback = new F(std::move(f)); return xbt_automaton_propositional_symbol_new_callback( a, id, [](void* callback) -> int { return (*(F*)callback)(); },