Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-02 12:49:50


Jeremy Maitin-Shepard <jbms_at_[hidden]> writes:

> The behavior of rehash in the case that an exception is thrown by the
> hash function is not specified in the proposal. In this
> implementation, if an exception is thrown by a hash function during a
> rehash operation, the hash table is cleared. This appears to be better
> behavior than leaving the container in state where it contains an
> arbitrary set of elements.

Why is that better? It seems overconstrained to me.

-- 
Dave Abrahams
Boost Consulting
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