Hacker News new | ask | show | jobs
by codeflo 1936 days ago
That’s one of my favorites as well. The fact that C++ will so happily auto-convert almost anything into an integer makes it even more likely to hit this accidentally.
1 comments

And explicit constructors won't save you from this one.