The purpose of this writing is to illustrate how constructors can be called in Visual Studio.
I am not suggesting to call constructors explicitly. Here is the queston:
Why does it have to be this complicated to call a constructor:
instead of just
See function f() in the following example.
' is required; Otherwise it creates a temporary object instead of calling constructor.
' is required; otherwise
is interpreted as a type instead of a constructor.
I also made a test case on my blog