开发者

Error Message 'class::function' : illegal call of non-static member function

开发者 https://www.devze.com 2022-12-28 09:20 出处:网络
i was trying to call a static function of class using scope resolution operator, the way to access static function but still generating error. what are the possibiliti开发者_如何学运维es.The error mes

i was trying to call a static function of class using scope resolution operator, the way to access static function but still generating error. what are the possibiliti开发者_如何学运维es.


The error message says it all: you are calling a non-static member function thinking it as static.


The obvious possibility is that your function is not static, as the error message clearly says. There are no meaningful way to guess at any other possibilities with the information you provided.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号