static const member variable initialization

后端 未结 0 1978
北海茫月
北海茫月 2021-02-15 02:35

Looks like I can init a POD static const member, but not other types:

struct C {
  static const int a = 42;      // OK
  static const string b = \"hi\"; // compi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题