Hey guys. I am trying to access the members inside of my struct, which is inside of my class in the private section like this:
This code is in my header file.Code:class someClass
{
public:
unsigned getNumber() const { return someStruct.Number; }
private:
struct someStruct
{
unsigned Number;
};
};
This seems like it should work. I am getting things like this when I compile. warning: no return statement in function returning non-void