On Mar 8, 2006, at 11:04 PM, James Rinker wrote:

I did as you suggested and eliminated the static Level::DEBUG and like
objects and that takes care of the issue. The program now terminates
with no exceptions.

As a note, there are a number of uses of the Level::XXXXX static objects
in src/logger.cpp that may need to be addressed depending on what the
decision is regarding whether to keep those static objects.

Thanks,
James


I've removed the unexpected uses of Level::FATAL and Level::INFO in src/logger.cpp. Those should have been removed long time ago.

Probably should just bite the bullet and kill them and live with any complaints. As currently written (assuming that it is written right), it still depends on the compiler correctly implementing a part of the spec that some compilers are known to fail to properly implement. It might be possible to write a stateless static object that casts to LevelPtr and calls getInfo() et al as part of the cast which would allow code compatibility but avoid the non-local static object issue.



Reply via email to