66. constexpr-i

Question.6

A developer validates a buffer configuration at compile time:

constexpr int BUF_SIZE = 100;
static_assert((BUF_SIZE & (BUF_SIZE - 1)) == 0,
   "Buffer size must be power of 2");

What happens during compilation?

Need Help? Refer to the Quick Guide below

Select Answer