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-fwd.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-fwd.hxx')
-rw-r--r-- | odb/details/shared-ptr-fwd.hxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/odb/details/shared-ptr-fwd.hxx b/odb/details/shared-ptr-fwd.hxx new file mode 100644 index 0000000..4483b90 --- /dev/null +++ b/odb/details/shared-ptr-fwd.hxx @@ -0,0 +1,26 @@ +// file : odb/details/shared-ptr-fwd.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_DETAILS_SHARED_PTR_FWD_HXX +#define ODB_DETAILS_SHARED_PTR_FWD_HXX + +#include <odb/pre.hxx> + +#include <odb/details/shared-ptr/counter-type.hxx> + +namespace odb +{ + namespace details + { + template <typename X> + class shared_ptr; + + class shared_base; + } +} + +#include <odb/post.hxx> + +#endif // ODB_DETAILS_SHARED_PTR_FWD_HXX |