News

My favorite C++20 feature--Marius Elvert

Did you know?

My favorite C++20 feature

by Marius Elvert

From the article:

As I evolved my programming style away from mutating long-lived “big” objects and structures and towards are more functional and data-oriented style based mainly on pure functions, I also find myself needing a lot more structs. These naturally occur as return types for functions with ‘richer’ output if you do not want to use std::tuple or other ad-hoc types everywhere. If you see a program as a sequence of data-transformations, I guess the structs are the immediate representations encoded in the type system...

How to Use C++20 Modules with Bazel and Clang--Ryan Burn

Modules are coming.

How to Use C++20 Modules with Bazel and Clang

by Ryan Burn

From the article:

Modules are a feature added to C++20 that aims to provide better encapsulation and faster build times. While modules are not fully supported by compilers and probably not ready for use in production code, Clang’s support is fairly usable.

In this guide, I’ll show you how to use modules with Clang and the Bazel build system by making use of the project github.com/rnburn/rules_cc_module.

Let’s look at it works on a simple hello world program...

constexpr if--Rainer Grimm

Have you ever used it?

constexpr if

by Rainer Grimm

From the article:

In today's post, I want to introduce a very interesting C++17 feature: constexpr if. constexpr if enables it to conditionally compile source code and can also be used for nice tricks at compile time...

Open letter for new C++ scope/charter. -- René Ferdinand Rivera Morell

Should the C++ standard change to include its ecosystem?

Open letter for new C++ scope/charter

by René Ferdinand Rivera Morell

From the letter:

We are writing asking for consideration towards changes to the wording of the "ISO/IEC JTC1/SC22/WG21 STATEMENT OF SCOPE". Which is currently stated as:

Development and maintenance of ISO/IEC Standards, Technical Specifications, and Technical Reports related to the programming language C++.

Reddit discussion here.

More Information about my Mentoring Program "Fundamentals for C++ Professionals"--Rainer Grimm

Will you participate?

More Information about my Mentoring Program "Fundamentals for C++ Professionals"

by Rainer Grimm

From the article:

One month ago, I presented "My Mentoring Program "Fundamentals for C++ Professionals". I'm overwhelmed by how my people want to participate in this first iteration of my mentoring program. What should I say? Today, I want to give you more details.

SFINAE: Substitution Failure is not an Error | Top-Up C++ [C++ #02]--WolfSound

Are you familiar with it?

SFINAE: Substitution Failure is not an Error | Top-Up C++ [C++ #02]

by WolfSound

Summary of the video:

In this video, we are presenting SFINAE: Substitution Failure is not an Error, a feature or a characteristic of C++ related to templates. “Substitution failure is not an error” means that if the compiler fails to specialize a template with a given template argument list, it does not issue an error. It does when it cannot find any suitable function/class to be called/instantiated (either due to a lack of suitably declared functions/classes or an error during instantiation).