TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  STY#030Checked automatically with code checker

This rule is Obsolete
Synopsis:The keyword struct shall only be used to declare a plain old data struct type
Language:C++
Severity Level:7
Category:Style


Description:

As Bjarne Stroustrup says: use struct to define aggregates that are not quite proper types, just data structures. This allows the object layout to be compatible with C struct instances, and they can be declared in headers that are shareable with C code.



Literature References:
ISC++ Style A.14