Opened 13 years ago

Closed 12 years ago

#3102 closed Bugs (invalid)

[interprocess] map::insert returning end() on success

Reported by: Bob Walters <bob.s.walters@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.39.0 Severity: Problem
Keywords: map interprocess insert Cc:

Description

The method:

iterator boost::interprocess::map::insert(iterator hint, const value_type& x) is returning the existing entry (correctly) when an entry with the indicated key already exists, but when it successfully inserts a new value, it is returning map::end(). It should be returning an iterator pointing to the newly inserted entry in that case.

Change History (2)

comment:1 by Ion Gaztañaga, 13 years ago

I can't reproduce the bug, could you attach a test case that reproduces this behaviour?

comment:2 by Ion Gaztañaga, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.