So, I\'m aware that in C++ static members can be initialized inside the class if they are a const literal type like the following
class test{ public:
static constexpr int stc = 1; // declares the static var constexpr int test::stc; // defines the static var
for more detailed explanation check link below
http://www.learncpp.com/cpp-tutorial/811-static-member-variables/