$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jason Hise (chaos_at_[hidden])
Date: 2005-02-15 23:11:49
From everything I know, cin, cout, cerr, and clog are simply global
variables that live in namespace std. Does this mean that the following
code is dangerous?
class Log
{
public:
Log ( ) { std::clog << "Log created\n"; }
~ Log ( ) { std::clog << "Log destroyed\n"; }
} global_log;
If so, (and I know this is presumptuous, so strictly hypothetically
speaking) could these four standard streams benefit by becoming
singletons? Just a thought experiment...
-Jason