Boost logo

Boost :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2007-08-22 17:29:54

Howard Hinnant wrote:
> Today I don't use list::size() in portable code. Why? Because we
> gave the vendor too much freedom.

It's not the same thing. The lack of time complexity specification for a
public function such as list::size is clearly (IMO) a defect. Checking
that mutexes match to avoid errors is in the realm of bug-finding aids
of debug builds. Putting it in the hands of the implementors is just
fine and if they choose to assert, it's best.

Or remove the lock parameter from the wait functions completely ;-)

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