The post discusses the implementation of the P2786R8 'Trivial Relocatability For C++26' proposal using C++ reflection. It focuses on developing functions that determine if a type is trivially relocatable and outlines several cases using various type traits and annotations. The post highlights how reflection can simplify and enhance the process of determining trivial relocatability and concludes with an example demonstrating its potential benefits.

9m read timeFrom brevzin.github.io
Post cover image
Table of contents
Trivially Relocatable TypesEligible for Trivial RelocationTrivially Relocatable ClassConclusion

Sort: