Static const string won't get initialized

后端 未结 6 1646
一生所求
一生所求 2021-01-13 21:00

I have some static const strings as private members of my C++ class. I am aware of the declaration in .h and definition (and initialization) in .cpp practice. In the class c

6条回答
  •  野的像风
    2021-01-13 21:41

    I mase a check of the program anbd it worked fine. In what IDE are you working with ? This on windows right ?

    You can use if I am mistaken make the definition if the class itself where you declare the member, the reason cause it is a const static.

提交回复
热议问题