Why can static member function definitions not have the keyword 'static'?

后端 未结 4 1198
北海茫月
北海茫月 2021-01-01 15:28

As per this link on the \'static\' keyword in C++ :

The static keyword is only used with the declaration of a static member, inside the class defini

4条回答
  •  一向
    一向 (楼主)
    2021-01-01 15:52

    Wild guess but if the definition has static it could be interpreted as a file-scope variable in the C sense.

提交回复
热议问题