gpt4 book ai didi

c++ - 有没有不是核心常量表达式的常量表达式?

转载 作者:行者123 更新时间:2023-11-30 01:40:33 24 4
gpt4 key购买 nike

根据 cppref , 常量表达式 不一定是核心常量表达式

我的问题:

是否有不是核心常量表达式常量表达式

最佳答案

[expr.const]/5将“常量表达式”定义为:

A constant expression is either a glvalue core constant expression that refers to an entity that is a permitted result of a constant expression (as defined below), or a prvalue core constant expression whose value satisfies the following constraints: [...]

没有不是核心常量表达式的常量表达式,cppreference 也没有提出其他要求。

关于c++ - 有没有不是核心常量表达式的常量表达式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43060011/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com