aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-21 18:08:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-21 18:08:39 +0200
commit221f0250fcd7cba4fa4b5e4fd6c0d410eb6e5811 (patch)
tree3ea5eca558f612fcc9b27db2778d4bfa47e38556 /bpkg/types
parent9792fc9d137b4dd702360ac0242f9a7a26e675c2 (diff)
Implement rep-add command
Diffstat (limited to 'bpkg/types')
-rw-r--r--bpkg/types16
1 files changed, 13 insertions, 3 deletions
diff --git a/bpkg/types b/bpkg/types
index 648c0f1..97b9ed9 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -7,9 +7,11 @@
#include <vector>
#include <string>
-#include <memory> // shared_ptr
+#include <memory> // shared_ptr, unique_ptr
#include <ostream>
+#include <odb/lazy-ptr.hxx>
+
#include <butl/path>
#include <butl/optional>
@@ -22,11 +24,19 @@ namespace bpkg
using strings = std::vector<string>;
using cstrings = std::vector<const char*>;
- using std::shared_ptr;
-
using butl::optional;
using butl::nullopt;
+ // Smart pointers
+ //
+ using std::unique_ptr;
+
+ using std::shared_ptr;
+ using std::weak_ptr;
+
+ using odb::lazy_shared_ptr;
+ using odb::lazy_weak_ptr;
+
// <butl/path>
//
using butl::path;