Redefine cvar_s as ConsoleVariable. ConsoleVariable constructor will now auto-register with the global list. ConsoleVariables can not be created dynamically through the cvar namespace but then, nothing in the code would have been using it. Remove set command from console application.