use #pragma once
instead of the #ifndef trick, and you can avoid that problem in the future
Buggy Class or is VC++ a little lost?
quote:Original post by Magmai Kai Holmlor
use #pragma once
instead of the #ifndef trick, and you can avoid that problem in the future
I believe the #pragma trick is a VC++ specific thing and non-standard. (But I could be wrong since I'm not going to through the trouble of looking up the standard to be sure. ) Of course, this doesn't matter too much if you never plan on porting your code to another platform. It is generally bad to teach yourself non-standard ways of doing things, however.
Edited by - jaxson on January 3, 2002 4:29:11 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement