
On Fri, 23 Feb 2007 11:24:35 +0200, Joaquín Mª López Muñoz
[...]Yep, it is correct, though possibly a little overkill; you could use a simpler key extractor for the task at hand, like this:
struct employee_case_insensitive_name_extractor { typedef std::string result_type;
std::string operator()(const employee& x) const { return boost::algorithm::to_lower_copy(x.name); } };
If the existing key extractors had a fourth template parameter to accept
an unary function object I think it would be a bit easier to create
user-defined key extractors? Imagine a (simplified) member defintion like
this:
template
mi2;
Do I miss anything? If not please regard this as a proposal to improve Boost.Multi-index. :) Boris