1
class Foo
{
public:
    // single parameter constructor, can be used as an implicit conversion
    Foo(int foo) : m_foo(foo)
    {
    }

    int GetFoo() { return m_foo; }
    unsigned int    mDoNotify : 1;
private:
    int m_foo;
};

can anyone pleas tell me what this line of code means -

unsigned int    mDoNotify : 1;

This is 1st time i encountered this kind of variable declaration.

TIA

0 Answers0