Meeting C++ is looking for your lightning talk!
Meeting C++ celebrates its 2 years anniversary with lightning talks. Submit yours until August 25th!
Meeting C++ online lightning talk meetup on August 31st
by Jens Weller
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Meeting C++ | Aug 15, 2022 06:47 AM | Tags: meetingcpp intermediate community c++20 c++17 basics
Meeting C++ celebrates its 2 years anniversary with lightning talks. Submit yours until August 25th!
Meeting C++ online lightning talk meetup on August 31st
by Jens Weller
By Meeting C++ | Aug 11, 2022 02:19 AM | Tags: meetingcpp intermediate conference community c++20 c++17 basics advanced
Since yesterday its possible to have a first look at the program of Meeting C++ 2022
A first view on the talks and speakers of Meeting C++ 2022
by Jens Weller
From the article:
I'm excited to release this update for Meeting C++ 2022: the talks and speakers for this years conference!
As you can see in the talk listing, this is still an ongoing process, getting the speaker pictures from the new speakers for this year will still take a while. Creating the schedule will also take a few weeks, as of now Tracks A and B are planned on site, with Tracks C and D being part of the online part.
By cppfun | Aug 9, 2022 10:42 AM | Tags: c++14
Are you moving?
Why you should use std::move only rarely
by Andreas Fertig
From the article:
In today's post, I try to tackle a topic that comes up frequently in my classes, move semantics, and when to use std::move. I will explain to you why not say std::move yourself (in most cases).
By Adrien Hamelin | Aug 8, 2022 11:50 AM | Tags: c++20
The series continue.
Improved automated instance construction in C++
by Marius Elvert
From the article:
In my last blog post, I wrote about how I am automatically deducing constructor parameters in my dependency injection container. The approach had a major drawback: It worked only for 2 or more parameters, since there was an ambiguity with copy- or move-constructors with exactly one parameter...
By Adrien Hamelin | Jul 29, 2022 09:12 AM | Tags: community
Lots of things.
C++ Annotated May 2022: C++23 News, Optimizing C++ Apps, Pointers and Memset Tricks, and Tooling News
by Anastasia Kazakova
From the article:
We are back today with all of the May news for you in our latest monthly C++ Annotated digest!
By Andrey Karpov | Jul 27, 2022 10:57 AM | Tags: undefined behavior delete
This note is for C++ beginner programmers who are wondering why everyone keeps telling them to use delete[] for arrays. But, instead of a clear explanation, senior developers just keep hiding behind the magical "undefined behavior" term. A tiny bit of code, a few pictures and a glimpse into nuts and bolts of the compilers – if interested, you're welcome to read.
Why do arrays have to be deleted via delete[] in C++
by Mikhail Gelvih
From the article:
This pointer in no case should be passed to the usual operator delete. Most likely, it will just remove the first element of the array and leave the others intact. Note that I wrote "most likely" for a reason, because no one can predict every possible outcome and the way the program will behave. It all depends on what objects were in the array and whether their destructors did something important. As a result, we get the traditional undefined behavior. This is not what you would expect when trying to delete an array.
By Adrien Hamelin | Jul 25, 2022 01:42 PM | Tags: None
Overview.
Searching and min-max: The 114 C++ algorithms series
by Šimon Tóth
From the article:
Welcome to the eighth instalment of the 114 C++ algorithms series. Today, we will discuss search algorithms that look up a specific element or count the number of matching elements and min-max algorithms...
By Adrien Hamelin | Jul 25, 2022 01:29 PM | Tags: c++23
Useful new feature!
C++23’s Deducing this: what it is, why it is, how to use it
by Sy Brand
From the article:
Deducing this (P0847) is a C++23 feature which gives a new way of specifying non-static member functions. Usually when we call an object’s member function, the object is implicitly passed to the member function, despite not being present in the parameter list. P0847 allows us to make this parameter explicit, giving it a name and const/reference qualifiers...
By Adrien Hamelin | Jul 22, 2022 01:21 PM | Tags: advanced
Complex world.
Pass-by-value vs Pass-by-reference
by James Mitchell
From the article:
Let’s dig into the age old question, should you pass-by-value or pass-by-reference in C++? (or by pointer in C)
This blog post is mostly a re-post of a reddit comment that I made on r/cpp about pass-by-value and pass-by-reference, with some minor improvements, to make it easier to reference and save.
The answer isn’t as easy as it might seem, it depends on the Application Binary Interface (ABI) and your use-cases, there isn’t a one size fits all answer, this is even more the case for anything which is built to be cross platform.
First it’s probably good to break the problem down into two parts (focusing solely on performance, ignoring readability and maintainability which should often be more important)
- The language construct costs (copying, moving, etc)
- Compiler implications (aliasing, pointer provenance, etc)
- The ABI (the stack, registers, etc)...
By Adrien Hamelin | Jul 22, 2022 01:17 PM | Tags: c++23
The future is already coming.
Ranges Improvements with C++23
by Rainer Grimm
From the article:
Thanks to C++23, constructing containers will become more convenient. Additionally, the ranges library got more new views...