c++11: get rid of spot::unique_ptr
But do not replace it by std::unique_ptr, because this was not really equivalent. * src/misc/unique_ptr.hh: Delete. * src/misc/Makefile.am: Adjust. * src/tgbaalgos/simulation.cc, src/tgbatest/ltl2tgba.cc: Call delete explicitly.
This commit is contained in:
parent
cdd7b475b3
commit
67b9e8d882
4 changed files with 20 additions and 104 deletions
|
|
@ -58,7 +58,6 @@
|
|||
#include "tgbaalgos/gtec/gtec.hh"
|
||||
#include "eltlparse/public.hh"
|
||||
#include "misc/timer.hh"
|
||||
#include "misc/unique_ptr.hh"
|
||||
#include "tgbaalgos/stats.hh"
|
||||
#include "tgbaalgos/scc.hh"
|
||||
#include "tgbaalgos/emptiness_stats.hh"
|
||||
|
|
@ -1789,12 +1788,12 @@ main(int argc, char** argv)
|
|||
// It is possible that we have applied other
|
||||
// operations to the automaton since its initial
|
||||
// degeneralization. Let's degeneralize again!
|
||||
spot::unique_ptr<spot::tgba>
|
||||
s(spot::degeneralize(a,
|
||||
degen_reset,
|
||||
degen_order,
|
||||
degen_cache));
|
||||
spot::tgba* s = spot::degeneralize(a,
|
||||
degen_reset,
|
||||
degen_order,
|
||||
degen_cache);
|
||||
spot::never_claim_reachable(std::cout, s, f, spin_comments);
|
||||
delete s;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -1997,9 +1996,10 @@ main(int argc, char** argv)
|
|||
}
|
||||
else if (graph_run_tgba_opt)
|
||||
{
|
||||
spot::unique_ptr<spot::tgba>
|
||||
ar(spot::tgba_run_to_tgba(a, run));
|
||||
spot::tgba* ar =
|
||||
spot::tgba_run_to_tgba(a, run);
|
||||
spot::dotty_reachable(std::cout, ar, false);
|
||||
delete ar;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue