|
Boost : |
From: Damien Fisher (damien_at_[hidden])
Date: 2002-01-30 19:43:25
On Thu, 31 Jan 2002, rwgk wrote:
> template <typename A, typename B>
> struct generic {
> A a;
> B b;
> };
>
> template <typename A, typename B = int>
> typedef generic<A, B> specific;
>
> EDG245 barfs, as expected. Is there a way to achieve what
> this example attempts?
template<typename A, typename B = int>
struct specific_typedef
{
typedef generic<A, B> value;
}
is about the closest you can get.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk