Pinned Tweet
Did I just get my own C++ keyword? `constinit` is headed for a future C++ dialect (Assuming the committee doesn't change their mind).
EricWF retweeted
What I wish more people understood about STL developers is that we are (or at least I am) incredibly lazy. We would like nothing more than to ship simple, correct, fast code. If you see complicated code, it’s very likely we’re forced to do that, or we have clever optimizations.
EricWF retweeted
So @Eric01 asks how to write a variable template where some specializations may be valid, but the primary template is not defined (gives an error if used). My suggestion:
template <class T> auto my_trait = not defined(my_trait<T>);
I feel proud and dirty.
According to my phones dictation, `std::allocator` == `stood alligator`. And the behavior of `stood alligator` is undefined. So watch out.
EricWF retweeted
$ touch math.h
... appears to have UB in C:
C11 7.1.2/3: "If a file with the same name as one of the [standard headers] is placed in any of the standard places that are searched for included source files, the behavior is undefined."
Evil C Compiler authors take note!
Reasons why you need 'constinit':
Because MSVC doesn't implement
C++ constant initialization and has been dangerously and silently miscompiling your code for years.
EricWF retweeted
Episode 185 of CppCast is live! @Eric01 joins us to talk about libc++ and his contributions to it, his work at google on Abseil and much more! Listen Now! #cplusplus cppcast.com/2019/01/eric-fis…
I think my IDE is having an existential crisis. Every couple hours it logs the ontologically questionable statement "Everything has changed".
But I didn't change anything. If I leave it overnight, it will log that message multiple times.
LLVM also included!
Black Friday deals on ALL KDE SOFTWARE!!!1!! 100% OFF! (also tomorrow, and the day after that, and the next day, and the next one after that too, and ...)
kde.org/applications/
Dictating F1 Driver Names on iPhone:
Verstappen -> For Steffen's
Bottas -> Bought us
Raikkonen -> Ray can
EricWF retweeted
In other news, yesterday's developments on C++'s operator<=> are going to force me to write an essay, "Type design over time: why you can't safely infer semantics from syntax."
Just found a bug in Clang and libc++'s extended support for aligned allocation in C++03. IDK what's happening but I just *know* my name is written all over the blame :-(
godbolt.org/z/6nqQFr
Both libc++ buildbots gave up the ghost today. So there is almost no CI right now.
On the bright side I haven't had a bot yell at me all day, which is nice.













