[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] multi_index, best way to do insert_or_replace
From:       bert hubert <bert.hubert () netherlabs ! nl>
Date:       2006-04-28 9:40:54
Message-ID: 20060428094054.GA6528 () outpost ! ds9a ! nl
[Download RAW message or body]

On Fri, Apr 28, 2006 at 10:22:49AM +0200, Joaqu?n M? L?pez Mu?oz wrote:

>   pair<negcache_t::iterator, bool> res=replacing_insert(s_negcache,ne);

Works, thank you (again) Joaquin! See
http://wiki.powerdns.com/projects/trac/changeset/785

> Note that replacing_insert() still cannot guarantee in the general case that
> insertion will always be succesful (hence its returning a pair<iterator,bool>):

Indeed - but in this case I know there is only one unique index, so I don't
check.

Thanks!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic