c++11: Replace boost::shared_ptr by std::shared_ptr.
* src/eltlparse/eltlparse.yy, src/ltlast/formula_tree.hh, src/ltlast/nfa.hh, src/saba/sabastate.hh, src/tgba/state.hh: Here.
This commit is contained in:
parent
67b9e8d882
commit
90a43db5a4
5 changed files with 13 additions and 14 deletions
|
|
@ -32,7 +32,6 @@
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <boost/shared_ptr.hpp>
|
|
||||||
#include "public.hh"
|
#include "public.hh"
|
||||||
#include "ltlast/allnodes.hh"
|
#include "ltlast/allnodes.hh"
|
||||||
#include "ltlast/formula_tree.hh"
|
#include "ltlast/formula_tree.hh"
|
||||||
|
|
@ -376,9 +375,9 @@ nfa_arg: ARG
|
||||||
CHECK_ARITY(@1, $1, $3->children.size(), arity);
|
CHECK_ARITY(@1, $1, $3->children.size(), arity);
|
||||||
|
|
||||||
// Hack to return the right type without screwing with the
|
// Hack to return the right type without screwing with the
|
||||||
// boost::shared_ptr memory handling by using get for
|
// std::shared_ptr memory handling by using get for
|
||||||
// example. FIXME: Wait for the next version of boost and
|
// example. FIXME: modify the %union to handle
|
||||||
// modify the %union to handle formula_tree::node_ptr.
|
// formula_tree::node_ptr.
|
||||||
formula_tree::node_unop* tmp1 = new formula_tree::node_unop;
|
formula_tree::node_unop* tmp1 = new formula_tree::node_unop;
|
||||||
tmp1->op = unop::Not;
|
tmp1->op = unop::Not;
|
||||||
tmp1->child = realias(i->second, $3->children);
|
tmp1->child = realias(i->second, $3->children);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
# include "formula.hh"
|
# include "formula.hh"
|
||||||
# include <vector>
|
# include <vector>
|
||||||
# include <boost/shared_ptr.hpp>
|
# include <memory>
|
||||||
# include "multop.hh"
|
# include "multop.hh"
|
||||||
# include "binop.hh"
|
# include "binop.hh"
|
||||||
# include "unop.hh"
|
# include "unop.hh"
|
||||||
|
|
@ -44,8 +44,7 @@ namespace spot
|
||||||
{
|
{
|
||||||
virtual ~node() {};
|
virtual ~node() {};
|
||||||
};
|
};
|
||||||
/// We use boost::shared_ptr to easily handle deletion.
|
typedef std::shared_ptr<node> node_ptr;
|
||||||
typedef boost::shared_ptr<node> node_ptr;
|
|
||||||
|
|
||||||
struct SPOT_API node_unop : node
|
struct SPOT_API node_unop : node
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
# include "misc/common.hh"
|
# include "misc/common.hh"
|
||||||
# include "misc/hash.hh"
|
# include "misc/hash.hh"
|
||||||
# include <boost/shared_ptr.hpp>
|
# include <memory>
|
||||||
# include <list>
|
# include <list>
|
||||||
# include <set>
|
# include <set>
|
||||||
# include <map>
|
# include <map>
|
||||||
|
|
@ -52,10 +52,10 @@ namespace spot
|
||||||
public:
|
public:
|
||||||
struct transition;
|
struct transition;
|
||||||
typedef std::list<transition*> state;
|
typedef std::list<transition*> state;
|
||||||
typedef boost::shared_ptr<formula_tree::node> label;
|
typedef std::shared_ptr<formula_tree::node> label;
|
||||||
/// Iterator over the successors of a state.
|
/// Iterator over the successors of a state.
|
||||||
typedef succ_iterator iterator;
|
typedef succ_iterator iterator;
|
||||||
typedef boost::shared_ptr<nfa> ptr;
|
typedef std::shared_ptr<nfa> ptr;
|
||||||
|
|
||||||
/// Explicit transitions.
|
/// Explicit transitions.
|
||||||
struct transition
|
struct transition
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@
|
||||||
#include "misc/common.hh"
|
#include "misc/common.hh"
|
||||||
#include <bdd.h>
|
#include <bdd.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <memory>
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
namespace spot
|
namespace spot
|
||||||
{
|
{
|
||||||
|
|
@ -156,7 +157,7 @@ namespace spot
|
||||||
// Functions related to shared_ptr.
|
// Functions related to shared_ptr.
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef boost::shared_ptr<const saba_state> shared_saba_state;
|
typedef std::shared_ptr<const saba_state> shared_saba_state;
|
||||||
|
|
||||||
/// \ingroup saba_essentials
|
/// \ingroup saba_essentials
|
||||||
/// \brief Strict Weak Ordering for \c shared_saba_state
|
/// \brief Strict Weak Ordering for \c shared_saba_state
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
#include <bdd.h>
|
#include <bdd.h>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <memory>
|
||||||
#include "misc/casts.hh"
|
#include "misc/casts.hh"
|
||||||
#include "misc/hash.hh"
|
#include "misc/hash.hh"
|
||||||
|
|
||||||
|
|
@ -179,7 +179,7 @@ namespace spot
|
||||||
// Functions related to shared_ptr.
|
// Functions related to shared_ptr.
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef boost::shared_ptr<const state> shared_state;
|
typedef std::shared_ptr<const state> shared_state;
|
||||||
|
|
||||||
inline void shared_state_deleter(state* s) { s->destroy(); }
|
inline void shared_state_deleter(state* s) { s->destroy(); }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue