Search code examples
cevelop

Meaning of Cevelop message "add argument(s) '?' to match 'not_severe_error(?)'"?


I have added to functioning code this:

auto not_severe_error(int a_code){return (a_code>=0);}

and changed:

if(rc>=0)

to:

if(not_severe_error())

What is the meaning of:

Add argument(s) '?' to match 'not_severe_error(?)'

Screen shot Cevelop with message.


Solution

  • @Obenland is correct. In the current release (1.7.1), Cevelop does not yet support return-type deduction.

    Since we build on-top of CDT, and CDT has added return-type deduction in its current milestone, it is most likely to be included in the next release (1.8) of Cevelop. I currently cannot provide you with a precise timeline for the 1.8 release, but as far as I am aware it will be later this year (after Eclipse Oxygen and CDT 9.3 are released - which is scheduled for June 28).

    The question mark in the signature of the suggestion is the result of Cevelop not being able to fully resolve not_severe_error(). Somewhat simplified, the symbol index sees the "overload" taking an int, but because currently functions returning auto have an "incomplete type", it cannot be sure if other overloads exist.