* Florian Weimer:
> * Frank Ch. Eigler:
>
>> +inline bool
>> +string_endswith(const string& haystack, const string& needle)
>> +{
>> + return (haystack.size() >= needle.size() &&
>> + haystack.substr(haystack.size()-needle.size()) == needle);
>> +}
>
> I think you should use std::equal becau
* Frank Ch. Eigler:
> +inline bool
> +string_endswith(const string& haystack, const string& needle)
> +{
> + return (haystack.size() >= needle.size() &&
> + haystack.substr(haystack.size()-needle.size()) == needle);
> +}
I think you should use std::equal because substr allocations. So
som