by nicolasgz · 13y ago · 0 comments
That's not true. Structs and classes are identical except for the minor functional differences highlighted in the article.
By convention? Nope. The term struct pretty much stands for a pure data construct. C++ attempted (and pretty much failed) to make this distinction. Some languages, like C#, did a much better job.
In the real world we are always urging to being consistent. While other languages do a pretty good job by enforcing it, on C++ this is more on your shoulders.