LinkedList icon indicating copy to clipboard operation
LinkedList copied to clipboard

Type mismatch error

Open miguelh72 opened this issue 5 years ago • 3 comments

Arduino\libraries\LinkedList/LinkedList.h:160:9: error: cannot convert 'bool' to 'ListNode<String>*' in return

return false;

But return type must be ListNode<String> not boolean.

miguelh72 avatar Jan 05 '21 07:01 miguelh72

Made a bad temporary workaround by changing line 160 to return current; on my local copy of the library. Hoping for a proper fix soon.

Funny enough this was not an issue on the Arduino Due, but it prevents compiling on Arduino Mega.

ryan-lastufka avatar Jan 22 '21 20:01 ryan-lastufka

Also have this issue with boards uno and micro since Arduino V1.8.10. With V1.8.9 everything was ok. ryan-lastufka's workaround works for me, thank you. As i have found in other C++ articles you can return NULL for ListNode<T>*

PatKeel avatar Jan 24 '21 17:01 PatKeel

Having the same issue with Arduino Uno.

@ryan-lastufka workaround works for me too. Thanks!

gilad-solter avatar Apr 07 '21 16:04 gilad-solter