This question was already asked in the context of C#/.Net.
Now I\'d like to learn the differences between a struct and a class in C++. Please discuss the technical d
Another main difference is when it comes to Templates. As far as I know, you may use a class when you define a template but NOT a struct.
template // OK template // ERROR, struct not allowed here