C
Christopher
I don't use #defines myself, or very rarely. We are in the middle of a
style war and a coding style is being written up. Which brings the
topic of #define in preexisting code.
Obviously, #define directives the header needs will have to go in the
header. But what of all of the #defines that are used like constants?
example
#define MYSILLYSTRING "I'm a String"
When these are only used in a class' .cpp?
Should these go in the .h or the .cpp file? Reasoning?
style war and a coding style is being written up. Which brings the
topic of #define in preexisting code.
Obviously, #define directives the header needs will have to go in the
header. But what of all of the #defines that are used like constants?
example
#define MYSILLYSTRING "I'm a String"
When these are only used in a class' .cpp?
Should these go in the .h or the .cpp file? Reasoning?