The complete warning message is : warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
candidate 1: bool QByteRef:perator==(char) const
candidate 2: operator==(int, int) <built-in>
which refers to the following code
:
Qt Code:
if (receivedMessage[0] == 0x0a)To copy to clipboard, switch view to plain text mode
Is there a better way to write this code to get rid of this warning? Thanks for any help.
Bookmarks