Skip to content
Snippets Groups Projects
Commit 31f2afd9 authored by Holger Obermaier's avatar Holger Obermaier
Browse files

A struct can be partially initialized. The order of the initialized elements...

A struct can be partially initialized. The order of the initialized elements in C is arbitrary, as the initialization has no side effects. In C++, the elements must be initialized in the order in which they appear in the struct, because each initialization potentially calls a constructor, which can then rely on the preceding elements being initialized
parent ecc439f9
No related branches found
No related tags found
1 merge request!2Develop porting from c to cpp
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment