
22 May
2011
22 May
'11
5:45 p.m.
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? Jeff