Consider the following:
template<typename T> struct Foo {
typedef void NonDependent;
typedef typename T::Something Dependent;
}
I would like to refer to NonDependent
without specifying any template parameter, as in Foo::NonDependent
.
I know I can always use a dummy parameter:
Foo<WhateverSuits>::NonDependent bla;
But that is ugly, and since NonDependent
is invariant with respect to T
, I would like to refer to it without relying on the dummy. Is it possible?
Thanks