Boost logo

Boost :

From: Shannon Stewman (stew_at_[hidden])
Date: 2004-03-29 15:33:59


On Mon, Mar 29, 2004 at 08:14:09AM +0200, Joaqu?n M? L?pez Mu?oz wrote:

> If the insertion violates some constraint, then it does
> not take place. insert operations return a
> pair<iterator,bool>: the bool indicates whether insertion
> succeeded or not.

Forgive me if this has already been asked, but why don't you return a
boost::optional<> object?

-- 
Shannon Stewman         | Let us walk through the waning night,
Caught in a whirlpool,  | As dawn-rays tickle our toes, the dew soothes
A quartering act:       | Our blistered soles, and damp bones stir
Solitude or society?    | As crimson cracks under the blue-grey sky.

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