#constexpr
constexpr exceptions are in!
November 23, 2024 at 11:30 AM
the beautiful thing about C++ reflection is no matter what you did wrong, clang will swear it's a constexpr problem
May 24, 2026 at 6:04 PM
A r e y o u r e a d y t o h a v e s o m e 『 f u n 』 ?

:3
April 6, 2026 at 5:42 AM
fear me and my wall of constexprs
May 6, 2025 at 2:36 AM
constexpr exception types and constexpr containers (all of them*) are now in LWG on path to C++26

* with exception of std::hive because it is not in draft yet
January 28, 2025 at 7:13 PM
constexpr exceptions in C++26 ...

compiler-explorer.com/z/PsWaYMbrz
December 11, 2024 at 9:54 AM
"everybody" knows they shouldn't write
constexpr bool what = std::is_constant_evaluated();
nor use
if constexpr (std::constant_evaluated())

but do you know about
const bool wtf = std::is_constant_evaluated();

I'm really sorry 😶‍🌫️
September 2, 2025 at 6:18 PM
GCC got constexpr exceptions (in today's trunk):

compiler-explorer.com/z/PE58vqhYo

big kudos to Jakub Jelínek
Compiler Explorer - C++ (x86-64 gcc (trunk))
struct hana_exception: std::exception { constexpr const char * what() const noexcept { return "my custom error message"; } }; constexpr bool test() { throw hana_exception{}; }; c...
compiler-explorer.com
July 11, 2025 at 11:54 AM
Modern C++ can be kinda pleasant actually?

Like constexpr, auto almost everywhere + brace initialization, user-defined literals, and concepts all help clean things up a bunch
November 29, 2025 at 5:15 PM
constexpr <mutex>, <condition_variable>, <shared_mutex>, <random>
July 15, 2025 at 6:37 AM
February 15, 2025 at 10:01 AM
Sorry we dissappointed you. Not everything is constexpr :( Coroutines needs to wait for 29.
February 16, 2025 at 1:31 PM
(I am cruficied by the woke mob for not making this constexpr)
January 6, 2026 at 9:43 AM
constexpr is my new best friend
March 23, 2025 at 8:40 AM
`constexpr volatile`....save me...
`constexpr volatile`
save me `constexpr volatile`
January 16, 2025 at 5:28 PM
slightly unhinged
December 18, 2025 at 4:27 AM
Guh. Finally fixed this up, and it tosses exceptions on failure now too.
June 20, 2026 at 4:57 PM
Meanwhile, reflection in C++26:
October 2, 2025 at 9:40 AM
🧮 C++23 + MSVC = compile-time math magic ✨
constexpr is arriving via LLVM libc in MSVC 14.52 Preview, enabling compile-time evaluation of math functions with improved accuracy and consistency. ⚙️🚀
Try /std:c++23 + /Zc:cmath and dive into the details!
📖 msft.it/63322aji2j
September 25, 2026 at 1:00 PM
What I would like is "constexpr class", "constexpr namespace", or "constexpr module" that automatically adds "constexpr" to all content. I think that's a good compromise.
July 1, 2025 at 2:02 PM
c++26 has all containers (list, map, set, unordered_map, ...)* and most of standard exception types constexpr.

* with exception of std::hive (which also got just in)
February 15, 2025 at 9:54 AM
Also atomics in 26 are constexpr 🙈☺️🥰
December 4, 2025 at 8:15 PM
-fimplicit-constexpr for clang (like already in GCC?) Sure! github.com/llvm/llvm-pr...

Any feedback appreciated!
[clang] add `-fimplicit-constexpr` flag by hanickadot · Pull Request #136436 · llvm/llvm-project
Same as GCC&#39;s flag of the same name. If a function (constructor / destructor) doesn&#39;t have a constexpr nor consteval specifier. It will implicitly add constexpr. This change doesn&#39;t tou...
github.com
April 19, 2025 at 3:31 PM
Poking about with compile time consteval programming. Finally understanding why @hanicka.net wants everything to be constexpr. Also, trying to bridge the gap from compile time data to static constants at runtime is painful...
August 10, 2026 at 2:15 PM