It’s just ‘,’ – The Comma Operator -- Coral Kashri
We all know that every ‘,’ matters in this language, so I decided to talk directly about that character today. So, how much impact can be for such a small little character?
It’s just ‘,’ – The Comma Operator
by Coral Kashri
From the article:
This operator comes from C, where it tells the compiler to evaluate all the expressions (left to right) and to return the result of the latest evaluated expression. For example:
inta, b;a = 5, b = 4, b += a, ++a, std::cout << b <<" "<< a;// Prints 9 6
Another example of that operator usage is as follows:
for(size_ti = 0, k = 500; i < 10; ++i, ++k) {/*...*/}
We can see this operator in action in the third section of theforstatement. It evaluates the++iand then evaluates++k.

The topic of this post is to show different ways to ensure that a class is either non-moveable or non-copyable.
In C++, associating member objects like properties or events with their containing class often requires passing this redundantly. This article explores a generalized, flexible solution using templates, variadic arguments, and deducing this to streamline ownership initialization without boilerplate.
Jonathan Müller attended the fall 2024 meeting of the ISO C++ standardization committee in Wrocław, Poland. This was the fifth meeting for the upcoming C++26 standard and the feature freeze for major C++26 features.