Daily Archives: September 27, 2017


code
Syntax [crayon-5daeffe6a7615922509250/]   [crayon-5daeffe6a7621532748848/] Functionality It is used to inhibit unintended implicit conversions to bool. Such conversion functions are called explicit conversion operators. In the code below, we have the operator bool, but it’s not marked as explicit. When we want to do + and == calls on objects of […]

Classes: Explicit conversion operators