67. constexpr-ii

Question.4

A developer creates a compile-time configuration object:

struct UartConfig {
   uint32_t baud;
   uint8_t parity;
   constexpr UartConfig(uint32_t b, uint8_t p) : baud(b), parity(p) {}
};

constexpr UartConfig cfg(115200, 0);

When is the UartConfig object created?

Need Help? Refer to the Quick Guide below

Select Answer