Y
Hacker News
new
|
ask
|
show
|
jobs
by
dbaupp
3482 days ago
I imagine the warning is following the rules for explicit constructors/operators in C++: an if condition is considered an "explicit" call to an `operator bool`.
http://en.cppreference.com/w/cpp/language/explicit