X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..01565540f1e39584fb5714d4f4c361ff518917f1:/include/xbt/automaton.hpp diff --git a/include/xbt/automaton.hpp b/include/xbt/automaton.hpp index 5c3dad854a..58fdd7553c 100644 --- a/include/xbt/automaton.hpp +++ b/include/xbt/automaton.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -19,9 +19,7 @@ namespace xbt { * This API hides all the callback and dynamic allocation hell from * the used which can use C++ style functors and lambda expressions. */ -template -xbt_automaton_propositional_symbol_t add_proposition( - xbt_automaton_t a, const char* id, F f) +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)); return xbt_automaton_propositional_symbol_new_callback(