Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 6th and 12th of April 2019.
In this week you will find the link to post about co_awaiting coroutines, link to an article how to write spaceship operator with std::tuple
& CRTP pattern and many more!
Guest post on the fluentcpp blog - from Henrik Sjöström. He is showing how to implement the Spaceship operator before C++20. To implement it he uses… tuples in combination with Curiously Recurring Template Pattern:
fluentcpp.com/2019/04/09/how-to-emulate-the-spaceship-operator-before-c20-with-crtp/Article about coroutines from Dawid Pilarski - he describes Awaitable and Awaiter concept, co_await operator and await_transform. A little bit magic inside, but after reading it you should be able to implement any coroutine
blog.panicsoftware.com/co_awaiting-coroutines/New boost library is out! Two new libraries inside -
boost::outcome
- lightweightoutcome<T>
andresult<T>
,boost::histogram
- fast multi-dimensional histogram with convenient interface for C++14:
boost.org/users/history/version_1_70_0.htmlVideo from CopperSpice - how to render 3D graphics in C++, with examples in OpenGL:
youtube.com/watch?v=MXz2t0gvRxIIn we C++ Weekly episode Jason Turner shows how to write recursive lambda.
youtube.com/watch?v=M_Mrk1xHMooNew CppCast episode - with Guy Davidson, about Linear Algebra & his work in the audio industry:
cppcast.com/2019/04/guy-davidson/Article from Marek Polacek about
std::move
, actually about when not to use it not to prevent RVO and NRVO. The author shows a few interesting gcc flags that might help with it:
developers.redhat.com/blog/2019/04/12/understanding-when-not-to-stdmove-in-c/Arthur O’Dwyer wrote a post about an interesting quirk of C++ - how
hana::type<T>
from boost disables ADL:
quuxplusone.github.io/blog/2019/04/09/adl-insanity-round-2/
Bonus 1: There is new c++ conference in Paris, CPPP (C++ Progress-Produce-Push forward).
cppp.fr/
The links are brought to you by Wojciech Razik.
Wojtek is a Senior C++ developer at Thaumatec, currently writing software for a face & iris recognition device. He enjoys reading C++ Standard before bed, and he loves to hate JS from dawn to dusk.
If you know Polish, take a look at cpp-polska.pl where Wojtek is one of the co-authors.