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
> 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
Did you really measure the opposite?

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

           David Abrahams * Boost Consulting
dave_at_[hidden] *

Boost list run by bdawes at, gregod at, cpdaniel at, john at