C++ Standard Version Mix-up

Libraries compiled with different C++ standard versions might not be as compatible as wanted.

C++ Standard Version Mix-up

by Christoph Cullmann

From the article:

We work with MSVC 2019 on Windows and all worked fine with LLVM 9.x, but with master, close to all my tests did now segfault in aligned_free.

Some months ago, the implementation of DenseMap got improved to use the allocate_buffer/deallocate_buffer functions to use (if possible) aligned allocation.

Unfortunately, this means, during the compilation of the library, the checks there ensure it doesn’t use these code paths, on the other side, during compilation of our tools, it does, as the allocation functions are fully inline in the header including the feature checks.

C++ on Sea 2020 - Student and Volunteer programmes

Our Student and Volunteer programmes for 2020 are now open.

Students and Volunteers, programmes for 2020

From the article:

These provide valuable opportunities for those who might not otherwise be able to attend to benefit from the conference - either very cheaply, or even for free!


Full details can be found on the Students and Volunteers programme pages, respectively.


If you are a student, but would also like to volunteer, you may apply to both programmes.


Note that applications for volunteers will remain open until 26th January 2020.

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.