If I uncomment the line testfn causes a compile error. What constructor can I add using =default
to allow me to define the comment out lane and still use TestFn()? Remember t{a}
should also work (not shown below).
struct Test2 {
int a; int*p;
Test2()=default;
//Test2(int a, int b, int c){};
};
void TestFn() { Test2 t{5,nullptr}; }