Using weak_ptr for circular references--Hitesh Kumar
A solution to a problem.
Using weak_ptr for circular references
by Hitesh Kumar
From the article:
std::weak_ptr or weak references can simplify circular references or can even eliminate them...
March 23-28, London, UK
By Adrien Hamelin | May 6, 2020 11:39 AM | Tags: intermediate c++11
A solution to a problem.
Using weak_ptr for circular references
by Hitesh Kumar
From the article:
std::weak_ptr or weak references can simplify circular references or can even eliminate them...
By Adrien Hamelin | Apr 29, 2020 12:14 PM | Tags: c++20
The series continue.
C++20: Powerful Coroutines with cppcoro
by Rainer Grimm
From the article:
I gave in my last post "C++20: Coroutines with cppcoro", a basic introduction to the coroutines library from Lewis Baker. This introduction covered the elementary coroutines task and generator. Today, I add threads to tasks and get powerful abstractions.
By Adrien Hamelin | Apr 27, 2020 12:26 PM | Tags: c++20
Helpful new feature!
Notes on C++ SFINAE, Modern C++ and C++20 Concepts
by Bartlomiej Filipek
From the article:
What is SFINAE? Where can you use this metaprogramming technique? Are there any better alternatives in Modern C++? And how about Concepts from C++20?
Read on to find out!
By Adrien Hamelin | Apr 27, 2020 12:24 PM | Tags: community c++20
The series continue.
C++20: Coroutines with cppcoro
by Rainer Grimm
From the article:
The cppcoro library from Lewis Baker gives you what C++20 doesn't give you: a library of C++ coroutine abstractions based on the coroutines TS...
By Mateusz Pusz | Apr 23, 2020 12:26 PM | Tags: None
Read about the benefits and challenges of online live training:
The benefits and challenges of online live training
by Mateusz Pusz
From the article:
Last week Jason Turner, Nicolai Josuttis, Rainer Grimm, Klaus Iglberger, and Mateusz Pusz met with the hosts of cpp.chat to talk about why training is valuable and to explain the particular challenges of such a profession in the days of social distancing.
Among others, C++ trainers discussed the benefits and issues with delivering the trainings and workshops in the online form. It turns out that online live training does not have to be a worse experience than participating in the face-to-face one. Read more...
By Adrien Hamelin | Apr 23, 2020 10:50 AM | Tags: community
Did you attend?
Trip report: C++ Siberia 2020
by Timur Doumler
From the article:
In 2019, I had a very busy conference year. I had just become self-employed, which meant I did not have to ask anyone’s permission anymore to go to a C++ conference. And because conferences are fun, I decided to go to all of them. Well, not all of them, but I ended up speaking at quite a few that year: CppOnSea (Folkestone), ACCU (Bristol), using std::cpp (Madrid), 4Developers (Warsaw), C++Now (Aspen), CoreC++ (Tel Aviv), C++Russia (both of them – Moscow & St. Petersburg), CppCon (Denver), ACCU Autumn (Belfast), MeetingC++ (Berlin), and finally CoreHard (Minsk). The latter one was particularly memorable because it was the first time a C++ conference invited me to deliver the opening keynote (and it was an amazing experience – thank you!)...
By Adrien Hamelin | Apr 23, 2020 10:29 AM | Tags: community c++11
Do you have that problem?
Qt, range-based for loops and structured bindings
by Ivan Čukić
From the article:
Qt has a long history. The first stable version was released before the first version of C++ was standardized and long before the different C++ compiler vendors started shipping usable implementations of the C++ standard library. Because of this, Qt often followed (and still follows) some design idioms that feel unnatural to the usual C++ developer.
This can have some downsides for the Qt ecosystem. The evolution of the C++ programming language which sped up quite a bit in the last decade often brings improvements which don’t fit well with the Qt philosophy. In this blog, I offer some ways to work with this...
By Adrien Hamelin | Apr 20, 2020 12:33 PM | Tags: intermediate
How do you do it?
How to Extract Words among Spaces in a C++ String
by Jonathan Boccara
From the article:
We’ve already seen how to split a string into words with a delimiter, but there is another use case that is pretty close, and that doesn’t have the same implementation: extracting words that are among spaces in a string...
By Adrien Hamelin | Apr 20, 2020 12:27 PM | Tags: c++20
The series continue.
C++20: Thread Synchronization with Coroutines
by Rainer Grimm
From the article:
It's a typical requirement for thread management to synchronize them. One thread prepares, in this case, a work-package another thread is waiting for...
By Adrien Hamelin | Apr 20, 2020 12:14 PM | Tags: c++17 advanced
Compile time magic.
I Accidentaly Wrote A Compile-Time Executable State Machine
by Philippe M. Groarke
From the article:
Yes, you read that title right. While working on a new way to create finite state machines (fsm), I inadvertently designed a state machine you can execute at compile-time. With branching and everything. Today, allow me to pull you down my rabbit hole. It’s always nicer with company down here.
Let’s go, Alice!