C++ Function Try Blocks
November 14, 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) {}
Jared Wein has been a software engineer working professionally on C#/C++ for over 2 years while pursuing a Masters in Computer Science from Michigan State University. He shares interests in test driven development, Python, software usability, sustainable development, urban planning, and a couple million other things.
Recent Comments