On Sunday, 28 May 2017 at 14:30:00 UTC, Ola Fosheim Grøstad wrote:
Struct and class is one type in C++. The difference is in the syntax where the grammar does not allow access protection for the struct keyword. So not semantical, but syntactical.

I.e. you can just search-and-replace "struct" with "class" in C++ and it will behave the same way.

"struct" is only used as a mnemonic device...

Reply via email to