Bjarne Stroustrup live online on Nov 15: "What is good C++ code?"
On November 15, Bjarne Stroustrup will be giving a live talk available via YouTube:
What is good C++ Code?
by Bjarne Stroustrup
live online via YouTube
November 15, at 19:00 UTC+3
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Blog Staff | Nov 12, 2022 02:30 PM | Tags: None
On November 15, Bjarne Stroustrup will be giving a live talk available via YouTube:
What is good C++ Code?
by Bjarne Stroustrup
live online via YouTube
November 15, at 19:00 UTC+3
By Blog Staff | Nov 11, 2022 11:35 AM | Tags: None
Playing the classics...
The Facade Pattern
by Rainer Grimm
From the article:
The key idea of the Facade Pattern is to provide a simplified interface to a complex system...
The Facade Pattern is an ideal starting point for decoupling complex systems by introducing layers. Additionally, it can be used as a starting point for deprecating the old interface.
Here are the facts. ...
By Blog Staff | Nov 11, 2022 11:31 AM | Tags: None
How can I construct thee? Let me count the ways...
Overview of C++ Variable Initialiation
by Christian Aichinger
From the article:
C++ variable initialization is quite complex, with several distinct categories that differ in behavior. The following list attempts to make sense of it. ...
By Blog Staff | Nov 11, 2022 11:25 AM | Tags: None
Visual Studio 2022 17.4 is available:
What's New for C++ Developers in Visual Studio 2022 17.4
by Sy Brand
From the article:
We are happy to announce that Visual Studio 2022 version 17.4 is now generally available! This post summarizes the new features you can find in this release for C++. ...
By Blog Staff | Nov 11, 2022 11:19 AM | Tags: None
Tick, tock...
Improving my C++ time queue
by Marius Elvert
From the article:
Another code snippet that can be found in a few of my projects is the “time queue”, which is a simple ‘priority queue’ style data structure that I use to defer actions to a later time. ...
By Ansel Sermersheim | Nov 8, 2022 11:45 AM | Tags: None
New video on the CopperSpice YouTube Channel:
Comparison Operators: Breaking Change in C++20
by Barbara Geller and Ansel Sermersheim
About the video:
C++20 added a feature for the compiler to auto generate comparison operators which is often referred to as the spaceship operator. We found a way this can break existing code when supplying your own comparison functions. Watch our video to find out how this can happen in your existing code which has never used the spaceship operator before.
Please take a look and remember to subscribe!
By Andrey Karpov | Nov 2, 2022 01:39 AM | Tags: temporary objects lifetime
After reading this article, you will learn the following: ways to extend the lifetime of a temporary object in C++, various tips and tricks; pitfalls of the lifetime extension that a C++ programmer may face.
Lifetime extension of temporary objects in C++: common recommendations and pitfalls
by Evgeny Neruchek
From the article:
You can extend the lifetime of a temporary array by referencing one of its elements. C++ has a special mechanism for this. But I would recommend you using it only in the disputes with your co-workers (and maybe in metaprogramming with the old C++ standards), since this mechanism is not so easy-to-use. However, using this mechanism does not result in dangling references, and the lifetime of the temporary array is extended to the lifetime of the reference to its element.
By Jordi Mon Companys | Nov 1, 2022 11:43 AM | Tags: None
FOSSA was founded to provide the most relevant and real-time end-to-end governance for all third-party code. They now announce the general availability of C and C++ Security and License Scanning
Announcing the GA of C and C++ Security and License Scanning
By Gauthami Polasani
From the article:
Unlike other C/C++ scanning tools, FOSSA does not take a one-solution-fits-all approach to dependency identification in such a complex and layered ecosystem. FOSSA uses multi-pronged strategies (as described below) to accurately identify dependencies and surface security and license risks — regardless of how the code is included.).
By Meeting C++ | Oct 29, 2022 06:14 AM | Tags: meetingcpp community c++20
Last week Meeting C++ online hosted an AMA (ask me anything) with Nicolai Josuttis
AMA with Nicolai Josuttis
by Jens Weller
By Giovanni Dicanio | Oct 27, 2022 12:01 PM | Tags: None
In Windows C++ programming many times there's a need to convert text between UTF-8 and UTF-16 encodings.
Convenient Unicode Conversion Functions for Windows C++ Code
by Giovanni Dicanio
From the article:
I published on GitHub a header-only library (Utf8Conv) that implements some convenient functions to convert text between UTF-8 and UTF-16 Unicode encodings.
I developed the library using Visual Studio 2019 with C++17 features enabled.