I am trying to initialize the second constructor by forcing the constructor to use just 1 parameter instead of 2. I expected 3,8 to be passed from Foo goo.
works fine:
Foo foo;
foo.makeNestedloop(7,5); //works fine
error:
Foo goo;
goo.makeNestedloop(3);// no defult constructor applied
[output]
In function 'int main()':
..\src\main.cpp:32:21: error: no matching function for call to 'Foo::makeNestedloop(int)'
goo.makeNestedloop(3);//
[output]