[Development] How to include Standard Library headers from Qt ones?

Thiago Macieira thiago.macieira at intel.com
Mon Apr 17 00:55:44 CEST 2017


Em domingo, 16 de abril de 2017, às 11:54:03 PDT, Ville Voutilainen escreveu:
> On 16 April 2017 at 20:51, Giuseppe D'Angelo <giuseppe.dangelo at kdab.com> 
wrote:
> > Il 16/04/2017 18:32, Corentin ha scritto:
> >> More on point:
> >>    * You don't actually need to include anything from the STL to
> >> 
> >> implement std::hash.
> > 
> > You actually do: you need <functional> to see the primary template for
> > std::hash (otherwise you can't specialize it). Also, how to implement it
> > is another burden (see the other discussion).
> 
> You don't need to include a header to do that:
> 
> namespace std {
>     template <class T> struct hash;
> }

That doesn't work if it's std::__1::hash.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list