Log inSign up
Log inSign up
CPPAlliance
448 posts
CPPAlliance profile banner
@CPPAlliance

CPPAlliance

@CPPAlliance
Our mission is to make the C++ programming language accessible and useful to anyone who wishes to learn and apply the language.
Joined November 2017
36 Following
1,505 Followers
RepliesRepliesRepostsRepostsMediaMedia

CPPAlliance’s posts

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 24
    In C++26, this runs inside the compiler: try { template_of(r); } catch (std::meta::exception& e) { ... } Reflection errors are real exceptions. You can catch them at compile time 🧵👇
    1
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 23
    static_assert(std::is_trivial_v<T>); C++26 deprecates this "Trivial" bundles two different questions: can I memcpy it, and can I skip constructing it. Most code only cares about one Good riddance, or one more migration chore? 🧵👇
    1
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 20
    std::optional<int> o; On a freestanding build (no OS, think microcontroller), <optional> wasn't guaranteed to exist. Neither was std::array or std::string_view C++26 fixes the embedded subset 🧵👇
    3
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 18
    constexpr auto r = ^^int; That's the C++26 reflection operator. Two carets One caret was the plan. It collided with Clang's blocks extension, where ^{ ... } already means something Love it or hate it? 🧵👇
    13
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 17
    std::shared_ptr<Config> cfg; auto c = std::atomic_load(&cfg); The C++11 way to share a shared_ptr across threads. Nothing stopped someone else from touching cfg without the atomic call C++26 deletes it 🧵👇
    2
Advertisement
Advertisement