namespace date_independent
{
class clock
{
public:
static clock at(int hour, int minute = 0);
clock& plus(int minutes);
clock& minus(int minutes);
operator std::string() const;
bool operator==(const clock& rhs) const;
private:
clock(int hour, int minute);
int hour_;
int minute_;
};
}
If I have just added the declaration for operator== and place my cursor on it, Create Implementation is only available ir the cursor is immediately before the keyword "operator", inside the keyword "operator", or immediately after the keyword "operator". If it is in or after the "==", in or before the keyword "bool", or before the space before the keyword "operator" it is unavailable.