[squid-dev] [PATCH] implement std::hash<SBuf>

Kinkie gkinkie at gmail.com
Tue Jul 28 05:04:22 UTC 2015


Hi,
  It's ripped from pur own hash.cc
Accord in to documentation I've found on Stackexchange, it's hen sanctioned
way to do it. Only alternative is to pass the Hasher template argument
every time.

-- 
  Francesco
On Jul 28, 2015 1:23 AM, "Alex Rousskov" <rousskov at measurement-factory.com>
wrote:

> On 07/27/2015 05:02 PM, Amos Jeffries wrote:
> > in src/SBuf.h:
> >
> > * does the functor have to be defined inside std:: ?
> > - my understanding was that namespace was reserved for STL use
>
>
> Amos is right: Please try to find a way to avoid modifying std. Such
> intrusion into std used to be required many years ago, but I would be
> surprised if it still is.
>
>
> Thank you,
>
> Alex.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150728/db7cf9ac/attachment.html>


More information about the squid-dev mailing list