aboutsummaryrefslogtreecommitdiff
path: root/odb/forward.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-25 16:50:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-25 16:53:36 +0200
commit6f70eeec9401f385c8122445eedb53602a002830 (patch)
tree18f0304a133d9a1d3a3c701aefd1e459711c9e0e /odb/forward.hxx
parent58a02e9c923fbc9b8f59c5b52ec7c8c55adffa31 (diff)
Add support for forward-declaring shared_base-based types
The forward declaration must specialize the counter_type template to explicitly specify shared_base as the counter type.
Diffstat (limited to 'odb/forward.hxx')
-rw-r--r--odb/forward.hxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/odb/forward.hxx b/odb/forward.hxx
index ec502d2..c387fb4 100644
--- a/odb/forward.hxx
+++ b/odb/forward.hxx
@@ -8,6 +8,8 @@
#include <odb/pre.hxx>
+#include <odb/details/shared-ptr-fwd.hxx>
+
namespace odb
{
class database;
@@ -45,12 +47,6 @@ namespace odb
template <typename T>
struct object_traits;
-
- namespace details
- {
- template <typename X>
- class shared_ptr;
- }
}
#include <odb/post.hxx>