December 2019

C++ coroutines: The co_await operator and the function search algorithm--Raymond Chen

The series continue.

C++ coroutines: The co_await operator and the function search algorithm

by Raymond Chen

From the article:

So you’re following along Kenny Kerr’s blog and you get to the part where he uses co_await on a time duration:

co_await 5s;

so you try it:

#include <chrono>
using namespace std::chrono;

winrt::IAsyncAction Delay10Seconds()
{
   co_await 10s;
   co_return;
}

and you get the error message

no callable ‘await_resume’ function found for type ‘Expression’ where Expression=std::chrono::seconds

CMake 3.16 added support for precompiled headers & unity builds - what you need to know

Modules are coming in C++20 but it will take a while before they are widely adopted, optimized and supported by tooling - what can we do right now?

CMake 3.16 added support for precompiled headers & unity builds - what you need to know

by Viktor Kirilov

From the article:

CMake 3.16 introduced native support for precompiled headers and unity builds - we no longer need to rely on clunky 3rd party CMake scripts! This is a complete guide on what the 2 techniques are, how to apply them and what to look out for. Builds could easily drop to less than 20% of the time they originally took.

Slow builds don’t just waste time - they also break the ‘flow’ (context switching) and discourage refactoring and experimentation - how do you put a price on that?

C++Now 2020: Accepting Student/Volunteer Applications

Are you a student and want to meet many of the top C++ experts? Apply now!

Accepting Student/Volunteer Applications

by C++Now

From the announcement:

It is my pleasure to announce the eighth year of the C++Now Student/Volunteer program! We are again inviting students with an interest in C++ to attend the May 3-8, 2020 conference in Aspen, CO as Student/Volunteers.