Boost logo

Boost Users :

From: Peter Barker (newbarker_at_[hidden])
Date: 2008-08-26 06:07:44


Hello,

I've a container of these objects:

class Search
{
public:
...
 const std::string& getName() const {return name_;}
};

I want to find a search in a case insensitive manner and this works:

iter = std::find_if(searches.begin(),searches.end(),
 boost::bind(&boost::iequals<std::string,std::string>,boost::bind(&Search::getName,_1),searchName,std::locale()));

However, I would've preferred to not have to specify the template parameters to iequals, and not have to specify the locale argument to iequals (it's optional). Is there a cleaner way to do this?

Regards,

Jim


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net