Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
A class template is a function from type(s) to type.
-
We don’t like const_cast much.
-
TL;DR: using enum for bitflags is poor, but it’s what we’re likely to end up with.
-
I’ve mentioned this in a few conference talks now, and periodically people ask me about it, but until now I guess I haven’t written it up.
-
“Discovery consists of seeing what everybody has seen, and thinking what nobody has thought.” — Albert Szent-Györgi, 1937 Nobel Laureate for Medicine I’m sure others have thought this, but they’re certainly not saying much about it.
-
Here are some functions: auto f() -> int; auto g(int) -> int; auto h(int, int) -> int; What they all have in common, structurally, is that they each return one thing.
-
See https://www.elbeno.com/blog/?
-
Another year, another crossword.
-
C++26 adds formatted diagnostics with static_assert, something like this: static_assert( sizeof(int) == 4, std::format("Expected 4, got {}", sizeof(int))); The benefit of course is that when such an assertion fails, the compiler outputs…
-
This curiosity was part of my CppCon Open Content talk in 2024, “Another Grab-bag of C++ Oddments”.