Hello,
The statement `Foo foo2();` is being interpreted by the compiler as a function declaration, per theIf you remove the "()" (i.e. `Foo foo2;`), it'll work as you expect.
Hello,
The statement `Foo foo2();` is being interpreted by the compiler as a function declaration, per theIf you remove the "()" (i.e. `Foo foo2;`), it'll work as you expect.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.