Boost logo

Boost :

Subject: Re: [boost] [ICL] interval_map::find(const domain_type_comparable&) instead of interval_map::find(const domain_type&)
From: Jeff Flinn (Jeffrey.Flinn_at_[hidden])
Date: 2011-05-22 13:45:29

Denis wrote:
> Hi Joachim
> One small note about Icl maps.
> I think would be useful to make interval_map::find()'s function accept any
> type comparable to map's key.
> For example, the key type is std::string and the user want to search using a
> 0-terminated string or a string defined as arbitrary pointer and a length.
> Then the user will have to allocate the temporary string only to pass it to
> interval_map::find()

Hmm, I can't find find in the docs :-p, and don't have ICL. Have you
tried wrapping your null terminated string with boost::as_literal at the
call site?


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