summaryrefslogtreecommitdiff
path: root/src/ref.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-20 14:14:07 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-08 00:35:29 +0100
commitd39880eef211a296fa8ef4712cdef5945d08527c (patch)
tree45dce8f3e1fd599ca76677e31eee2a71c9a4fbc1 /src/ref.h
parent75faebaf1d74e2b52360905e94e9f5bf31c34124 (diff)
std::shared_ptr
Diffstat (limited to 'src/ref.h')
-rw-r--r--src/ref.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ref.h b/src/ref.h
index fd15c29e..9ebe19b8 100644
--- a/src/ref.h
+++ b/src/ref.h
@@ -41,7 +41,7 @@
#include "exceptions.h"
#include "asset.h"
#include "util.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
#include <string>
namespace dcp {
@@ -66,7 +66,7 @@ public:
{}
/** Initialise a Ref with a shared_ptr to an asset */
- explicit Ref (boost::shared_ptr<Asset> asset)
+ explicit Ref (std::shared_ptr<Asset> asset)
: _id (asset->id ())
, _asset (asset)
{}
@@ -77,7 +77,7 @@ public:
_id = id;
}
- void resolve (std::list<boost::shared_ptr<Asset> > assets);
+ void resolve (std::list<std::shared_ptr<Asset> > assets);
/** @return the ID of the thing that we are pointing to */
std::string id () const {
@@ -87,7 +87,7 @@ public:
/** @return a shared_ptr to the thing; an UnresolvedRefError is thrown
* if the shared_ptr is not known.
*/
- boost::shared_ptr<Asset> asset () const {
+ std::shared_ptr<Asset> asset () const {
if (!_asset) {
throw UnresolvedRefError (_id);
}
@@ -113,7 +113,7 @@ public:
private:
std::string _id; ///< ID; will always be known
- boost::shared_ptr<Asset> _asset; ///< shared_ptr to the thing, may be null.
+ std::shared_ptr<Asset> _asset; ///< shared_ptr to the thing, may be null.
};
}