All challenges
Multiple ChoiceIntermediate 45s

explicit(bool) conditional explicit

What problem does explicit(bool) solve on a conversion constructor?
Options
  1. 1It makes the constructor deleted conditionally based on the same compile-time condition
  2. 2It forces the constructor to be constexpr whenever the condition evaluates to true
  3. 3It makes the constructor conditionally explicit based on a compile-time condition
  4. 4It disables copy-initialization always, regardless of the compile-time condition value

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle