C++ Function Try Blocks
14 November, 2008 § 1 Comment
Will it compile?
That is the question for this post. Suppose you have a class definition and constructor with an object initializer list like the following:
class CObject
{
CFoo foo;
CBar bar;
};
CObject::CObject() : foo(2), bar(3) {}