How many ways are there to initialize variables? Don't forget to watch out for bugs that look like variable initialization, but aren't.
Problem
What is the difference, if any, between the following?
SomeType t = u; SomeType t(u); SomeType t(); SomeType t;
Solution
Taking them in reverse order:
SomeType t;
The variable t is initialised using the default c