← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. Partial application of class templates

    A class template is a function from type(s) to type.

  2. const_cast: A Necessary Evil

    We don’t like const_cast much.

  3. A better bitset for enum flags

    TL;DR: using enum for bitflags is poor, but it’s what we’re likely to end up with.

  4. The Global API Injection Pattern

    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.

  5. C++ Reflection: Another Monad

    “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.

  6. Functions are Asymmetric

    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.

  7. A Crossword for CppCon 2025 – Solutions

    See https://www.elbeno.com/blog/?

  8. A Crossword for CppCon 2025

    Another year, another crossword.

  9. Formatted Diagnostics with C++20

    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…

  10. Open Content at CppCon: One API for Types and Values

    This curiosity was part of my CppCon Open Content talk in 2024, “Another Grab-bag of C++ Oddments”.