Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2005-05-04 03:49:20


>
>a.cpp:14: Print result of f():
>b.cpp:75: Enter f()
>b.cpp:95: Exit f()
>a.cpp:14: 1234
>
>
>

I really don't understand why you'd want this. And more to the point,
I'm really curious how you could implement this in C++:

// show what you want above.
BOOST_LOG(app) << "result of f() " << f();

And finally, I don't know why you'd want the above. What if f() then
calls g(), and so on, all this functions doing some logging.
Would you actually prefer:

a.cpp:14: result of f()
[100 lines of other logged messages]
a.cpp:14: 1234

To:

[100 lines of other logged messages]
a.cpp:14: result of f(): 1234

Best,
John

-- 
John Torjo,    Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/ -v1.6.3 (Resource Splitter)
-- http://www.torjo.com/cb/ - Click, Build, Run!

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk