The uppercase() function is part of my class:
class MyString {
public:
MyString();
MyString(char cstring[]);
void uppercase();
private
};
And the implementation for uppercase is not finished, but looks like this:
void MyString::uppercase()
{
cout << "need to implement";
}
When I call the function, it looks like this:
//Output streaming Operator Overload
ostream& operator<<(ostream& os, const MyString& string)
{
if (MyString::printAsUppercase == true)
uppercase();
else
os << string.data;
cout << "(" << string.length << ")";
return os;
}
When I attempt to compile the code, I receive the following error:
'std::uppercase': function does not take 0 arguments
I really don't understand this, as I declared the prototype to NOT take any arguments, and followed through with that in the implementation. The function shouldn't have to take any arguments. Why does this happen?