Open Nekrolm opened 1 year ago
https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Safe_bool#:~:text=Safe%20bool%20idiom%20allows%20syntactical,for%20the%20safe%20bool%20idiom.&text=In%20C%2B%2B%2C%20address%20of,taken%20in%20a%20derived%20class.
add also:
pointer to bool conversions cause hilarious bugs like wrong overload resolution
https://godbolt.org/z/8PYf8foMW
https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Safe_bool#:~:text=Safe%20bool%20idiom%20allows%20syntactical,for%20the%20safe%20bool%20idiom.&text=In%20C%2B%2B%2C%20address%20of,taken%20in%20a%20derived%20class.