[all] Switch from boost::shared_ptr -> std::shared_ptr.
Shared_ptr has moved into the standard library since these tools were first written.
This commit is contained in:
@@ -50,7 +50,7 @@ namespace thin_provisioning {
|
||||
|
||||
class damage_visitor {
|
||||
public:
|
||||
typedef boost::shared_ptr<damage_visitor> ptr;
|
||||
typedef std::shared_ptr<damage_visitor> ptr;
|
||||
|
||||
virtual ~damage_visitor() {}
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#ifndef EMITTER_H
|
||||
#define EMITTER_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/optional/optional_io.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace thin_provisioning {
|
||||
|
||||
class emitter {
|
||||
public:
|
||||
typedef boost::shared_ptr<emitter> ptr;
|
||||
typedef std::shared_ptr<emitter> ptr;
|
||||
|
||||
virtual ~emitter() {}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace thin_provisioning {
|
||||
|
||||
class damage_visitor {
|
||||
public:
|
||||
typedef boost::shared_ptr<damage_visitor> ptr;
|
||||
typedef std::shared_ptr<damage_visitor> ptr;
|
||||
|
||||
virtual ~damage_visitor() {}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace thin_provisioning {
|
||||
|
||||
typedef block_manager::read_ref read_ref;
|
||||
typedef block_manager::write_ref write_ref;
|
||||
typedef boost::shared_ptr<metadata> ptr;
|
||||
typedef std::shared_ptr<metadata> ptr;
|
||||
|
||||
metadata(block_manager::ptr bm, open_type ot,
|
||||
sector_t data_block_size = 128,
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace thin_provisioning {
|
||||
|
||||
class metadata_checker {
|
||||
public:
|
||||
typedef boost::shared_ptr<metadata_checker> ptr;
|
||||
typedef std::shared_ptr<metadata_checker> ptr;
|
||||
|
||||
virtual ~metadata_checker() {}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace {
|
||||
|
||||
class command {
|
||||
public:
|
||||
typedef boost::shared_ptr<command> ptr;
|
||||
typedef std::shared_ptr<command> ptr;
|
||||
|
||||
virtual ~command() {}
|
||||
virtual void exec(strings const &args, ostream &out) = 0;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace {
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
struct btree_node_checker {
|
||||
typedef boost::shared_ptr<btree_node_checker> ptr;
|
||||
typedef std::shared_ptr<btree_node_checker> ptr;
|
||||
virtual ~btree_node_checker() {}
|
||||
virtual bool check(node_ref<uint64_traits> &n) = 0;
|
||||
};
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "metadata.h"
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
@@ -34,7 +33,7 @@ namespace thin_provisioning {
|
||||
class thin_pool;
|
||||
class thin {
|
||||
public:
|
||||
typedef boost::shared_ptr<thin> ptr;
|
||||
typedef std::shared_ptr<thin> ptr;
|
||||
typedef boost::optional<mapping_tree_detail::block_time> maybe_address;
|
||||
|
||||
thin_dev_t get_dev_t() const;
|
||||
@@ -57,7 +56,7 @@ namespace thin_provisioning {
|
||||
|
||||
class thin_pool {
|
||||
public:
|
||||
typedef boost::shared_ptr<thin_pool> ptr;
|
||||
typedef std::shared_ptr<thin_pool> ptr;
|
||||
|
||||
thin_pool(metadata::ptr md);
|
||||
~thin_pool();
|
||||
|
||||
Reference in New Issue
Block a user