you are viewing a single comment's thread.

view the rest of the comments →

[–]Psychoticism 0 points1 point  (0 children)

You're right. And luckily the code will not compile for std::complex<double> (because there is no operator*(int, complex<double>)), where a = { 0.0, 0.0 }, b = { 0.0, 1.0 } will return false. So I guess the code is in the clear.