r/cpp • • Feb 12 '26

New version of SwedenCpp website released, with more C++ info than ever

Thumbnail swedencpp.se
22 Upvotes

I just released the new version of the SwedenCpp.se homepage, now more of a C++ information hub than a local user group website.

Showing hourly fresh content about:

  • Upcoming C++ Meetups
  • Videos (conference/creator/usergroups)
  • Blogs
  • Releases (> 100 interesting github release monitored)
  • Podcasts (we do not have many C++ podcasts :-( )

There are, for sure, some child diseases on the page, and since I moved the provider, SSL issues may be the case.
However, since it's online now, I thought I would share the update news now.


r/cpp • • Sep 16 '25

VImpl: A Virtual Take on the C++ PImpl Pattern

Thumbnail solidean.com
37 Upvotes

It's probably not super original but maybe some people will appreciate the ergonomics! So basically, classic pimpl is a lot of ceremony to decouple your header from member dependencies. VImpl (virtual impl) is solving the same issue with very similar performance penalties but has almost no boilerplate compared to the original C++ header/source separation. I think that's pretty neat so if it helps some people, that'd be great!


r/cpp • • Jan 08 '25

"break label;" and "continue label;" in C++

160 Upvotes

Update: the first revision has been published at https://isocpp.org/files/papers/P3568R0.html

Hi, you may have hard that C2y now has named loops i.e. break/continue with labels (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3355.htm). Following this, Erich Keane published N3377 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3377.pdf), which proposes a different syntax.

I am about to publish a C++ proposal (latest draft at https://eisenwave.github.io/cpp-proposals/break-continue-label.html) which doubles down on the N3355 syntax and brings break label and continue label to C++, like:

outer: for (auto x : xs) {
    for (auto y : ys) {
        if (/* ... */) {
            continue outer; // OK, continue applies to outer for loop
            break outer;    // OK, break applies to outer for loop  
        }
    }
}

There's also going to be a WG14 counterpart to this.