Author: Francis GlassborowFrancis Glassborow Date: May 9, 2008 07:44
Venkat wrote:
> Trying to have the following usage; however, gcc is not liking.
When seeking help it is always desirable that you give us as much
information as possible. At the very least indicate which line gcc was
rejecting and if possible the error message that it gave. I know that
error messages are sometimes very lengthy where templates are concerned
but it is usually possible identify what is being complained about at
least in general.
>
> #include
>
> namespace xyz {
> class elem {
> public:
> typedef boost::shared_ptr elem_sptr;
> };
>
That just renames boost::shared pointer in the scope of class elem.
elem_sptr will not be visible anywhere outside this class scope. Why did
you encapsulate the typedef in a class? ...
|