Boost logo

Boost Users :

Subject: Re: [Boost-users] (no subject)
From: Matthias Troyer (troyer_at_[hidden])
Date: 2009-09-30 16:54:48


On 30 Sep 2009, at 18:53, vicente.botet wrote:

> Hi,
>
> is there a way to define a template that will generate a type
>

Do you mean a metafunction:

template <class T>
struct generate_type
{
   typedef ........ type;
};

and it is used as

typename generate_type<int>::type

Matthias


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