October 2022

CppCon 2022 keynote: How C++23 changes the way we write code -- Timur Doumler

Hot off the press from CppCon:

CppCon 2022 keynote: How C++23 changes the way we write code

Timur Doumler

From the announcement:

Timur Doumler on C++23 at his CppCon 2022 keynote in Aurora, Colorado!

This video is in “prerelease” and cannot be found directly on our YouTube channel, instead we are providing a direct link here only! Feel free to share this with colleagues and friends and impress them with your insider access...

The power of ref-qualifiers -- Andreas Fertig

overload171cover.pngNew in this month's Overload magazine:

The power of ref-qualifiers

by Andreas Fertig

From the article:

... What I have illustrated is that there is an issue with range-based for-loops. In (1), we call GetKeeper().items() in the head of the range-based for-loop. By doing this, we create a dangling reference.

ref-qualifiers to the rescue

Now, this brings us to ref-qualifiers. They are often associated with move semantics, but we can use them without move. However, we will soon see why ref-qualifiers make the most sense with move semantics.

A version of Keeper with ref-qualifiers looks like Listing 2...

The gotcha of the C++ temporaries that don’t destruct as eagerly as you thought -- Raymond Chen

RaymondChen_5in-150x150.jpgWorth waiting for:

The gotcha of the C++ temporaries that don’t destruct as eagerly as you thought

by Raymond Chen

From the article:

Forgetting to take a lock when updating variables is a common mistake. One way to make the mistake harder to make is to force the access to occur through some mechanism that proves that you possess the lock. Maybe something like this: ...

Highlighting the student and support tickets for Meeting C++ 2022

Like every year, Meeting C++ is also offering a set of free tickets for students and those that are in need of a little support!

Highlighting the student and support tickets for Meeting C++ 2022

by Jens Weller

From the article

With the schedule published, I'd like to highlight the student and support tickets for Meeting C++ 2022.

For a few years now Meeting C++ has hosted programs to give students, underrepresented folks and those who can't afford a ticket access to the conference. This is supported through the ticket sales and some times sponsorships.

Deferred argument evaluation -- Joaquín M López Muñoz

joaquin.jpgWhy do now what you can do later (or not at all)?

Deferred argument evaluation

by Joaquín M López Muñoz

From the article:

Ideally, we'd like for try_emplace to not create the object except when really needed. What we're effectively asking for is some sort of technique for deferred argument evaluation. As it happens, it is very easy to devise our own: ...

The Singleton: The Alternatives Monostate Pattern and Dependency Injection -- Rainer Grimm

rainer_grimm.jpgHave you used the patterns?

The Singleton: The Alternatives Monostate Pattern and Dependency Injection

by Rainer Grimm

From the article:

So far, I have discussed in my previous posts the Singleton Pattern, and its pros and cons. One question is still open: What alternatives for the Singleton Pattern are available? Today, I write about the Monostate Pattern and Dependency Injection...

C++20 Concurrency: Barrier -- Gajendra Gulgulia

1*vXN7x9ljxB7JRw1ICFbA2Q.pngOne if by latch, two if by barrier:

C++20 Concurrency: Barrier

by Gajendra Gulgulia

From the article:

In this article, I’ll present a simple example of std::barrier by means of game players playing a hypothetical card game and go into the details of the api of std::barrier in another article...

CppCon 2022 keynote video: Using C++14 in an Embedded 'SuperLoop' Firmware -- Erik Rainey

Another CppCon 2022 keynote video is posted:

2022 Keynote on Embedded Firmware in C++: Erik Rainey, prerelease

From the article:

Erik Rainey on embedded firmware in C++ at his CppCon 2022 keynote in Aurora, Colorado!

This video is in “prerelease” and cannot be found directly on our YouTube channel, instead we are providing a direct link here only! Feel free to share this with colleagues and friends and impress them with your insider access ��

Upcoming C++ User Group meetings in October 2022

The monthly listing on Meeting C++ about upcoming C++ User Group meetings:

Upcoming C++ User Group meetings in October 2022

by Jens Weller

From the article:

This month Meeting C++ online hosts some special events:

    Meeting C++ online job fair:
        4.10 C++ UG Meeting C++ online - Online C++ job fair (afternoon CEST)
        5.10 C++ UG Meeting C++ online - Online C++ job fair (evening CEST)
    20.10 C++ UG Meeting C++ online - October - AMA with Nicolai Josuttis
    25.10 C++ UG Meeting C++ online - Meeting C++ online book & tool fair
        With Bjarne Stroustrup and Klaus Iglberger

The Meetings
...