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 <jh...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to