Jump to content
Wikipedia The Free Encyclopedia

Talk:Constexpr

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 3 months ago by ~2026-21314-14 in topic Excessive headings
This article is rated B-class on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject icon C/C++ Mid‐importance
WikiProject icon This article is within the scope of WikiProject C/C++ , a collaborative effort to improve the coverage of C and C++ topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.C/C++Wikipedia:WikiProject C/C++Template:WikiProject C/C++C/C++
Mid This article has been rated as Mid-importance on the importance scale.

Incorrect claim about constexpr for TU local variables

[edit ]
Latest comment: 3 months ago 2 comments2 people in discussion

constexpr variables may not refer to entities local to a translation unit, such as entities not exported from a module.

This is false? constexpr is entirely valid for variables with static linkage and storage duration (i.e. global/namespaced static variables)? Wallby (talk) 11:11, 18 April 2026 (UTC) Reply

Hello, thanks for pointing that. I deleted this wrong information. Birthay boy (talk) 15:53, 25 April 2026 (UTC) Reply

Excessive headings

[edit ]
Latest comment: 3 months ago 1 comment1 person in discussion

@Birthay boy, there does not need to be excessive headings in a section. Sections under the "evolution" heading already are separated under versions and do not need to be split even further when the description spans two sentences. ~2026-21314-14 (talk) 19:07, 27 April 2026 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /