I wasn't sure about applying the value.. thanks for the info. I had seen that posted in a forum so I was trying to figure out what it meant, but it doesn't look very useful (at this point in time for me, anyway), so I'll pretend I never saw it.
I also saw mention of
#pragma once
, along with a note stating that it's not recognized by all compilers, so my initial thoughts were to leave it out. I was not aware that it has effect on compilation efficiency.
That said, is there any Conditional Compiling available in C++? In VB, we can force certain code to not be compiled except under certain situations. Can something similar be done here? I had not tried #pragma, but if it's benificial over the standard #ifndef and #define guard, I would like to at least play around with it, but I'm also interested in maintaining ASCII/ISO coding standards.
I read a wiki article on this (
http://en.wikipedia.org/wiki/Pragma_once), wondering how it reacted in cases where they #include guards as well as the #pragma once is there. I wasn't able to find a definitive answer, but it seems that as the compiler processes, if it sees #pragma once and already has this file loaded, it would skip the rest of that file entirely (thus not requiring processing of the #include guards (or the rest of the file) except for the first reference to the header)?
Again, many thanks for your help.