A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further rename the identifiers of flexml to simgrid_parse_*
[simgrid.git]
/
include
/
xbt
/
automaton.hpp
diff --git
a/include/xbt/automaton.hpp
b/include/xbt/automaton.hpp
index 01bd9e0863a2ae6e4dc1bfe091fb45c52957a7e4..8e2e85731b0888235e161a8dc3607198849a9d58 100644
(file)
--- a/
include/xbt/automaton.hpp
+++ b/
include/xbt/automaton.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2015-202
1
. The SimGrid Team.
+/* Copyright (c) 2015-202
3
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-23,11
+23,7
@@
template <class F> xbt_automaton_propositional_symbol_t add_proposition(const_xb
{
auto* callback = new F(std::move(f));
return xbt_automaton_propositional_symbol_new_callback(
{
auto* callback = new F(std::move(f));
return xbt_automaton_propositional_symbol_new_callback(
- a, id,
- [](void* callback) -> int { return (*(F*)callback)(); },
- callback,
- [](void* callback) -> void { delete (F*)callback; }
- );
+ a, id, [](auto* cb) -> int { return (*(F*)cb)(); }, callback, [](auto* cb) -> void { delete (F*)cb; });
}
}
}
}