A
ank
Hi,
I was curious about how to define static data member of template class.
Should I put the definition in a separate source file or in the same
header file as its template class?
And when this data will be initialized if it is used across many
translation unit, assume that it has constructor and needs dynamic
initialization?
I have blindly searched for the answer but I still not thoroughly
understand this issue.
I was curious about how to define static data member of template class.
Should I put the definition in a separate source file or in the same
header file as its template class?
And when this data will be initialized if it is used across many
translation unit, assume that it has constructor and needs dynamic
initialization?
I have blindly searched for the answer but I still not thoroughly
understand this issue.