Quantcast
Channel: User Jeremy - Stack Overflow
Viewing all articles
Browse latest Browse all 47

Answer by Jeremy for How to use member type of a template class without specifying unnecessary template parameters?

$
0
0

I am trying to use a member type of a template class, which does not depend on any template parameters of the template class.

As a nested type within class A<T>, MemberTypedoes depend on the template parameter T.

i.e. A<T>::MemberType<T2> and A<U>::MemberType<T2> are distinct classes.


Viewing all articles
Browse latest Browse all 47

Latest Images

Trending Articles



Latest Images