[Interest] Unable to determine callable overload.

Jérôme Godbout jerome at bodycad.com
Tue Dec 15 18:54:34 CET 2015


if you provide:
hashFile(QCryptographicHash::Algorithm,QString,bool=true)

you must delete the
hashFile(QCryptographicHash::Algorithm,QString)

since the follwoing call will be confused and could be either method:
hashFile(myAlgo, "my string");

handle the default case into the default value for without any bool.

On Tue, Dec 15, 2015 at 12:51 PM, Jason H <jhihn at gmx.com> wrote:

>
> Whenever I give a default parameter value in C++ (where the bool=true
> below) I get this error:
> Error: Unable to determine callable overload.  Candidates are:
>     hashFile(QCryptographicHash::Algorithm,QString)
>     hashFile(QCryptographicHash::Algorithm,QString,bool)
>
> Removing the default value resolves it. Is there a way I can avoid this
> error and provide a default?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151215/3d556afc/attachment.html>


More information about the Interest mailing list