So I want to add a struct from a c header file as a class member to a c++ class. But I get a compiler error for the cpp file: bar was not declared inn thi
cpp
bar was not declared inn thi
Initialization should be done this way (C++11):
myClass::myClass( ) : bar{1, 0, "someString", 0x4} { }
Also, do not forget to declare your constructor in your class definition.