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

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 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>