If I have fnc:
void fnc(const SomeType&){}
And when I list the preconditions and postconditions for this fnc, I think the enumeration of the form precondition is:
SomeType should be of the correct type , pretty dumb, isn't it? I ask for this because in my uni they want us to list something like this, but if the type of the argument is not correct, the code will not compile in any case, so I consider it incorrect to provide this form. But, as usual, I'm wrong.
source
share