struct OSPACELIMITS
{
double from;
double to;
};
struct OSpaceLimits : public OSPACELIMITS
{
};
void test()
{
OSPACELIMITS limits1;
limits1.from = 11; // from is underlined
limits1.to = 22;; // to is underlined
OSpaceLimits limits2;
limits2.from = 3.14; // from is underlined
limits2.to = 1.23; // to is underlined
}
Note:
1. The two struct use the same name, it's just that one is completely upper case, while the other use Hungarian notation.
2. If you comment out the second struct (OSpaceLimits), then there will be no underline for the member of limits1.