Angus Leeming <[EMAIL PROTECTED]> writes:
| If I can type
| template <class A>
| class Foo
| {
| };
|
| typedef Foo<A> foo_a;
|
| is there a way of achieving
|
| template <class A, class B>
| class Foo
| {
| };
|
| class Alpha;
| // This isn't real code but the idea is there
| typedef Foo<Alpha, B> foo_a<B>;
|
| ie, I want to specialise to Alpha but leave B as a template parameter.
|
| At the moment I have
|
| class Alpha;
| template <class B>
| class foo_a : public Foo<Alpha>
| {
| foo_a() : Foo<Alpha>() {}
| };
|
| To acieve the same (similar) end.
|
| Any ideas?
template <class A, class B>
class Foo {
Foo();
};
class Alpha;
// specialize for A == Alpha
template <class B>
class Foo<Alpha, B> {
Foo();
};
--
Lgb