aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-17 13:53:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-17 13:53:52 +0200
commit299c4e373d2c2642a8e4c3537eb0436c5a6b9c09 (patch)
tree9cc85f9b6011dc2ae91297925ba1a18ef572effa
parent01a3fda266073b58a4de6dd61417bb2d0e3ecf9e (diff)
Add std::shared_ptr to common types
-rw-r--r--bpkg/package2
-rw-r--r--bpkg/types3
2 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/package b/bpkg/package
index 73c0b27..48b7ec8 100644
--- a/bpkg/package
+++ b/bpkg/package
@@ -90,7 +90,7 @@ namespace bpkg
// package
//
- #pragma db object pointer(std::shared_ptr)
+ #pragma db object pointer(shared_ptr)
class package
{
public:
diff --git a/bpkg/types b/bpkg/types
index 4110ed8..a5fe114 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -7,6 +7,7 @@
#include <vector>
#include <string>
+#include <memory> // shared_ptr
#include <ostream>
#include <butl/path>
@@ -21,6 +22,8 @@ namespace bpkg
using strings = std::vector<string>;
using cstrings = std::vector<const char*>;
+ using std::shared_ptr;
+
using butl::optional;
// <butl/path>