Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Example1
- class Test {
- private:
- static const char* const str;
- };
- const char* const Test::str = "mystr";
- //Example2
- class Test {
- private:
- static const std::string str;
- };
- const std::string Test::str ="mystr";
Add Comment
Please, Sign In to add comment