These two member functions, why aren't they overloaded?

According to ยง13.1 / 2, the two member functions below are not overloaded. Why is this?

class X { static void f(); void f() const; }; 

Edit : The question is not a duplicate. The above example shows a const function and a static function that is not a constant. From ยง 13.1 / 2, I know that functions are not overloaded. I just want to know why the Standard does not allow the above construction.

+5
source share

Source: https://habr.com/ru/post/1208346/


All Articles