void foo() { bool p = 1; bool f = static_cast(1); bool x = p ? 1 : 0; }