cppaddict <> wrote in
news::
> My question is: What is the right way to do what I am trying to do.
> Am I simply using NULL incorrectly? Is my design on the wrong track
> altogether?
NULL is zero (0) in C++. Should be used with pointers only.
Is activeCharset a pointer?
All in all, it's better to use a plain zero (0) instead of NULL. Less
confusion, etc.
Besides, NULL is a preprocessord definition, and as we all know,
preprocessor is evil. period.
On the other hand... Are the guys behind Boost.Preprocessor from hell? huh?
If the preprocessor alone is evil, then that library is the purest, most
condensed, archetypal evil to walk the earth, soon reaching for critical
mass!
But I digress...
Cheers.