aboutsummaryrefslogtreecommitdiff
path: root/odb/details/shared-ptr/base.txx
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/details/shared-ptr/base.txx
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/details/shared-ptr/base.txx')
-rw-r--r--odb/details/shared-ptr/base.txx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/details/shared-ptr/base.txx b/odb/details/shared-ptr/base.txx
index a836974..a57ce91 100644
--- a/odb/details/shared-ptr/base.txx
+++ b/odb/details/shared-ptr/base.txx
@@ -68,7 +68,7 @@ namespace odb
template <typename X>
struct counter_type<X, sizeof (meta::no)>
{
- typedef X r;
+ typedef typename details::counter_type<X>::counter r;
};
template <typename X>