diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 16:50:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 16:53:36 +0200 |
commit | 6f70eeec9401f385c8122445eedb53602a002830 (patch) | |
tree | 18f0304a133d9a1d3a3c701aefd1e459711c9e0e /odb/details/shared-ptr/base.hxx | |
parent | 58a02e9c923fbc9b8f59c5b52ec7c8c55adffa31 (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/details/shared-ptr/base.hxx')
-rw-r--r-- | odb/details/shared-ptr/base.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/details/shared-ptr/base.hxx b/odb/details/shared-ptr/base.hxx index 7cf44da..3bc2df1 100644 --- a/odb/details/shared-ptr/base.hxx +++ b/odb/details/shared-ptr/base.hxx @@ -12,8 +12,8 @@ #include <cstddef> // std::size_t #include <odb/exception.hxx> - #include <odb/details/export.hxx> +#include <odb/details/shared-ptr/counter-type.hxx> namespace odb { @@ -52,8 +52,9 @@ namespace odb what () const throw (); }; - struct LIBODB_EXPORT shared_base + class LIBODB_EXPORT shared_base { + public: shared_base (); shared_base (const shared_base&); shared_base& |