[Development] QJsonValue (was: Re: Qt 5.2 header diff: QtCore)

Thiago Macieira thiago.macieira at intel.com
Tue Nov 5 18:18:21 CET 2013


On terça-feira, 5 de novembro de 2013 18:10:30, Marc Mutz wrote:
> Any integer type would previously pick the (int) ctor. Now, everything
> except  int and qint64 will be ambiguous, in particular unsigned int.
> 
> Hmm, or maybe the (bool) overload already made everything other than int
> and  bool ambiguous?

Wasn't it ambiguous with that double too?

$ g++ -xc++ -fsyntax-only - <<<'void f(int); void f(double); void g() { f(1u); 
}'
<stdin>: In function ‘void g()’:
<stdin>:1:45: error: call of overloaded ‘f(unsigned int)’ is ambiguous
<stdin>:1:45: note: candidates are:
<stdin>:1:6: note: void f(int)
<stdin>:1:19: note: void f(double)

-- 
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/20131105/408ccdf9/attachment.sig>


More information about the Development mailing list