LoginSignup
1
0

More than 5 years have passed since last update.

[個人用Memo]cv-qualifierがエラーに表示された場合の対処

Last updated at Posted at 2013-07-11

c++を使用中に以下のエラーが発生。
static member function cannot have cv-qualifier

対処方法
 staticメンバー関数のconstを取る。


class Hoge {
public:
static int hoge() const; // このconstを取り去る。
};

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0