Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-02-17 16:31:36


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Perry Smith
> Sent: Friday, February 17, 2006 11:24 AM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Un-nesting a class
>
> I have a template like:
>
> template <typename Z>
> class foo { // ...
>
> I know that Z has the form A::B::C (three levels of nesting). Does
> boost have a way for me to define a type which refers to A::B?

Oops. I think I meant:

template<typename Z>
class foo
{
        typedef typename Z::B zb;
};

class A
{
        class B
        {

        };
};

foo<A> a;


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