Compiler Error C3162
'type' : a reference type which has a destructor cannot be used as the type of static data member 'member'
The common language runtime cannot know when to run a user-defined destructor when the class also contains static member function.
A destructor will never be run unless the object is deleted explicitly.
For more information, see,