You need to do the second. Delegating constructors only works in the constructor’s initialization list, otherwise you’ll just create a temporary or do other mistakes like you mentioned.
You need to do the second. Delegating constructors only works in the constructor’s initialization list, otherwise you’ll just create a temporary or do other mistakes like you mentioned.