Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-09-21 19:03:09


From: "Peter Dimov" <pdimov_at_[hidden]>
> > How about getting rid of the complication in case of BOOST_NO_THREADS?
>
> Not that much difference in the generated code, and #ifdefs just clutter
the
> source. People hate #ifdefs. :-) I don't like the #ifdefs in
> shared_count.hpp much either, but some compilers don't optimize out the
> empty BOOST_NO_THREADS mutex in lwm_nop.hpp for some reason, and those
> functions are performance critical.

Experience tells me that most compilers won't optimize out your catch
block.
Did you really measure the opposite?

In this case, the #ifdefs would have had great explanatory value ;-)

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


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