Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-02-12 13:31:01

On 2/12/02 10:26 AM, "Peter Dimov" <pdimov_at_[hidden]> wrote:

> Ah, but that's a feature. You think that 0 is better? Use get(). Someone
> else feels that an exception is better? Use the constructor.

But this is not a good interface for the feature.

There's nothing to help you remember which version allows 0 and which
doesn't. It could just as easily be the constructor which allows 0 and the
get() function which throws an exception.

I stand by my original comment -- the constructor should not throw an

    -- Darin

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