do not click

Meeting C++ 2026   |  Online   |  Training   |  Books   |  Survey   |  Job fair   |  Advertising   |  Jobposting   |  Login

Meeting C++ 2026 - Thread-safety compile-time guaranteed in C++

Conference | Live Schedule | Talks | Get your ticket | Slides | Set your timezone

Thread-safety compile-time guaranteed in C++

Join session

Antoine MORRIER

On Day 2 at 16:00 (CET/Berlin) in Track A [Saphir Room and online]

Writing correct multithreaded C++ is hard, and the type system does little to help.

This talk presents a C++ library that pushes a class of these bugs out of runtime and into the compiler. Using move-only types, RAII guards, and carefully constrained APIs, we can encode rules directly in the type system. For example, we can express that a value cannot be accessed by multiple threads, and a violation that would normally surface as a hard-to-reproduce runtime bug becomes a plain compile error.

The design draws inspiration from Rust's ownership model, but the implementation is pure C++ and stays close to the idioms C++ developers already use.

Here is the link to the Godbolt link with the code basics I want to present: 

Godbolt link

Please login to comment

Copyright Meetingcpp GmbH Imprint Privacy Policy