Boost logo

Boost Users :

Subject: Re: [Boost-users] Help with shared_ptr and template
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-27 22:35:39


AMDG

Mario Chacon wrote:
> I have this problem and I do not how to fix it, I know I cannot write
> template typedefs, its a limitiation of the C++ syntax, right? or I'm
> wrong? I saw that the best way is to wrap your typedefs in a struct,
> which can be
> templated, but I'm still stack with problems. The best way to explain
> it's with an example:
>
> <snip working code>
>
> How can I create a shared_ptr for the template class "CVALUE"??
> Please I do not know what else I can prove... :(

I'm not sure what you're asking. Your code compiles for me and
the type of "a" is shared_ptr<CValue<bool> >? What am I missing?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net