Public feed #727269

Miscellany

public cpp v1 · immutable
Raw Edit
·published 2007-10-05 21:53 UTC
rendered paste body
// common.cppkCvar test("test", "test cvar", 1337.0f);kCmd testCmd("testCmd", "test command", testCallback);// cmd.cppkCmdSystem *cmdSys = new kCmdSystem;// cvar.cppkCvarSystem *cvarSys = new kCvarSystem;i get a segfault in the constructor for testCmd. cmdSys is NULL at this point. however, cvarSys is not. i'm betting on undefined behavior.the constructors for kCvar and kCmd call functions inside cvarSys and cmdSys, respectively.