From 6f70eeec9401f385c8122445eedb53602a002830 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 Mar 2011 16:50:19 +0200 Subject: 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. --- odb/details/shared-ptr/base.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/details/shared-ptr/base.txx') 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 struct counter_type { - typedef X r; + typedef typename details::counter_type::counter r; }; template -- cgit v1.1