[Development] C++11 decltype magic with a container?

Thiago Macieira thiago.macieira at intel.com
Wed May 22 21:24:39 CEST 2013


On quarta-feira, 22 de maio de 2013 19.34.49, Stephen Kelly wrote:
> > The operator exists and there's nothing preventing it from existing. The
> > problem is that the operator exists but can't be used.
> 
> Yes.
> 

> > It does. You need to make sure that there's an enable_if in the function
> > you're trying to detect. You can't detect if the function compiles.
> 
> Sorry, I don't see how that suggestion is different from the code I posted
> in my initial mail.

There are no changes to qpair.h in your change. I am asking you to make the 
change to QPair and all the containers so that they std::enable_if the 
operator== if and only if the value_type is equality-comparable.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130522/9f48ebe7/attachment.sig>


More information about the Development mailing list