Subject: Re: [boost] std::map::find() wrapper
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-06-01 16:41:59
On Wed, Jun 1, 2011 at 9:23 PM, Scott McMurray <me22.ca+boost_at_[hidden]> wrote:
> On Wed, Jun 1, 2011 at 11:53, Olaf van der Spek <ml_at_[hidden]> wrote:
>> On Wed, May 4, 2011 at 1:04 PM, Olaf van der Spek <ml_at_[hidden]> wrote:
>>> What's the best way to get this wrapper into Boost?
>> Somebody? Please?
> Why do you need it in boost? Putting the 6 lines of code in a file
> when you need it is no great hardship.
Because you'd like to avoid code duplication. Because not everyone
thinks about writing such a wrapper.
std::map::find is used quite a lot and in most if not all cases this
wrapper would provide a simpler alternative.
> Since it's not fundamental functionality, I think the cost of
> documenting it and making it visible oughtweighs its utility.
Are you the one that's paying that cost?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk