> That's definitely one way to do it; if you look at ext/stl_hash_fun.h you'll > see what's happening here. You could return __stl_hash_string directly. > If you're going to use a nonportable extension, why stop with just one? :-) std::collate::hash also works