I have a class with a static member:
class MyClass { public: static const SomeOtherClass myVariable; };
Which I initialize in the CPP f
You can wrap the function inside another function that catches the exception and alerts the user of the problem (or creates the key with a safe default value)