d2mcpp icon indicating copy to clipboard operation
d2mcpp copied to clipboard

练习: 08-literal-type-0 英文(en) 没有设置C++17 导致报错 - non-constexpr function 'operator[]' cannot be used in a constant expression

Open Sunrisepeak opened this issue 9 months ago • 0 comments

  • 讨论贴: https://forum.d2learn.org/topic/145
  • https://github.com/mcpp-community/d2mcpp/issues/35

non-constexpr function 'operator[]' cannot be used in a constant expression

en版本

https://github.com/mcpp-community/d2mcpp/blob/fc4931ab75047c40ec314ef582f124996b9faa07/dslings/en/cpp11/xmake.lua#L92-L95

zh版本

https://github.com/mcpp-community/d2mcpp/blob/fc4931ab75047c40ec314ef582f124996b9faa07/dslings/cpp11/xmake.lua#L92-L95

Sunrisepeak avatar Feb 09 '26 10:02 Sunrisepeak