| Re: template depth problem |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.c++.moderated · Group Profile
Author: Dan BarbusDan Barbus Date: May 9, 2008 07:43
On May 9, 6:30 am, Venkat yahoo.com> wrote:
> Trying to have the following usage; however, gcc is not liking.
>
> #include
>
> namespace xyz {
> class elem {
> public:
> typedef boost::shared_ptr elem_sptr;
>
> };
> }
>
> #include
{ Edits: quoted sig & clc++m banner removed. Please don't quote them. -mod }
Hi,
This may not be it, I don't have time to test right now, but maybe,
the error is due to not specifying that ObjectType::elem_sptr is a
typename in the definition of BaseContainer.
That is, try this:
namespace abc {
template
class BaseContainer
{
typedef std::map Container;
Regards,
Dan
|