Log inSign up
Log inSign up
CPPAlliance
458 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,513 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
    Dec 3
    Please take a moment to give back
    @Boost_Libraries
    Boost C++ | Open Source Libraries
    @Boost_Libraries
    Dec 3
    Your code depends on Boost. Boost depends on you. Boost's 180+ libraries are free, peer-reviewed, and kept running by a small group of maintainers. Help fund the work behind every release. Your gift is tax deductible in the US. go.boost.org/4Bd45WM #cpp
    Image
    View media
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Dec 2
    union U { std::string s[4]; }; U u;  // error You wanted raw storage for four strings, constructed later. C++ deleted the union's constructor and destructor instead Every inplace_vector style container needed a workaround 🧵👇
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Dec 1
    auto v = std::views::istream<int>(in) | std::views::take(1000) | std::ranges::to<std::vector>(); At most 1,000 elements. The vector still grew by repeated reallocation, because the size wasn't known up front C++26 adds a size hint 🧵👇
  • @CPPAlliance
    CPPAlliance
    @CPPAlliance
    Nov 30
    std::add_sat. std::sub_sat. std::saturate_cast We decoded C++26's saturation arithmetic back in July. Then France filed a ballot comment on the names, and the committee renamed all five Better names, or bikeshedding? 🧵👇
  • @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 🧵👇
Advertisement
Advertisement