Hello. I am frustrated with a invalid arguments semantic error I am getting from Eclipse working on a small library for an Arduino project. I am very, very rusty programming in C++ and I am trying out the Sloeber plugin for Eclipse (loving it so far!) so I am not even certain where my problem lies but odds are great that I am just doing something stupid due to how much I have forgotten about C++.
This screenshot shows the issue pretty clearly, I think. Lines 48 and 49 both get the invalid argument error but it sure looks to me like I am passing a correct arg (int). Indeed, I completed these lines using the autocomplete suggestion drop-down list in Eclipse. Line 53 is just from me experimenting and noticing that the problem only seems to happen when I call a member function with an argument. Calling one with no args does not raise a flag.
I have been combing through my old C++ reference books trying to find what I am missing here, but if anyone in this community can offer some tips on what to look for I would greatly appreciate it.