Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bind_flag() with valid_values only works with std:string anyway.
[simgrid.git] / include / xbt / automaton.hpp
index 58fdd75..b9bea1e 100644 (file)
@@ -21,7 +21,7 @@ namespace xbt {
  */
 template <class F> 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)(); },