i searched but could not find the answer.
So I have my c++ constructor:
MyClass(string username = "something");
note this is the only constructor I have.
in my main, I do:
MyClass one();
MyClass two = MyClass();
are these two expressions equivalent? is the compiler gonna call my constructor with the default string, or is it gonna call the default (empty) constructor?
What would change if I did have a constructor MyClass(); ? I guess that would not compile, right?