I have the following code in C++:
// This is the header file, test.h
typedef struct
{
int a;
int b;
} Numbers;
class Test
{
private;
Numbers numbers_;
};
//This is the source file, test.cpp
#include "test.h"
Test::Test()
{}
Then I run lint on it, it says Warning 1401 member "numbers_" not initialized by constructor
I know how to initialize build in types in constructor, but how to initialize type like Numbers
?