On quarta-feira, 22 de maio de 2013 11.07.44, Stephen Kelly wrote:
> QSpiRelationArray::value_type is QSpiRelationArrayEntry which, being a
> QPair,  does have a operator==(), so the decltype gives the result that the
> std::find should work.

In other words, QPair has an operator==, but it can't be used because it won't 
compile. Your code detects that it exists, but can't be sure that it works?

Then the problem is in QPair.

You need to modify all operator== in classes with templates to make sure they 
are enable_if for the case where its template(s) is(are) comparable.

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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to