C++ Logo

std-discussion

Advanced search

Re: Why is this code accepted by all compilers?

From: Hani Deek <hani_deek_at_[hidden]>
Date: Fri, 12 Nov 2021 17:34:43 +0000
Thank you for clearing it up. I thought that any variable used in a constant expression must satisfy the conditions for a "variable usable in constant expressions." The part of the C++ standard that deals with constant expressions is arguably the most confusing part.

Received on 2021-11-12 11:34:51