rougier/CPP-Crash-Course

Mistake in Destructor example

Opened this issue · 2 comments

Location: https://github.com/rougier/CPP-Crash-Course?tab=readme-ov-file#32destructor

Issue: In main, that should be Foo foo; instead of Foo foo(); (which will give a "most vexing parse" error").

Thanks. Can you make a PR?

@rougier Done! Opened PR #6