
17 Mar
2004
17 Mar
'04
10:09 p.m.
John Torjo <john.lists <at> torjo.com> writes:
How about std::ostream ;) ?
Seriously, depending on your application, you can have so many possibilities to implement logging using std::ostream streams. For instance, you can implement thread-safety in less than 80 lines of code.
Why is there no standard idiom for thread-safe access to an ostream? Are there any caveats to the use of streams with this protection? Matt