
23 Dec
2005
23 Dec
'05
11:10 p.m.
I for one agree with Richard that any macro interface to logging should work by surrounding the entire invocation in parens, not just the log object. It would remove the need for the enabled_logger class and the additional heap allocation of the stream.
Yes, you're right. If I can't eliminate the creation of the stream, I'll prefer that. But as Gennady said, I will make it possible for you to create your own macros -- I'll just provide the means ;) Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/surfaces.html - Sky's the limit! -- http://www.torjo.com/cb/ - Click, Build, Run!