From what you posted... MyStruct is not a local type to CMyClassA...
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010 In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Igor is there any way to put the whole initialization in the .cpp file ?
It may be harmless for only one case - your .cpp is the only unit that uses this class. Otherwize the static member initialization must reside in header file because of its template nature.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.