Buggy Class or is VC++ a little lost?

Started by
10 comments, last by reaptide 22 years, 3 months ago
use #pragma once
instead of the #ifndef trick, and you can avoid that problem in the future
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
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