this post was submitted on 03 Sep 2023
6 points (87.5% liked)

C++

2022 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] JustCopyingOthers@lemmy.ml 1 points 2 years ago (2 children)

This presentation from CPP-On-Sea 2022 is relavent https://youtube.com/watch?v=sjLRX4WMvlU Two classes for managing pimpl

[–] lysdexic@programming.dev 1 points 2 years ago (1 children)

It seems that neither std::indirect_value nor std::polymorphic_value made it into C++23, thought. Is it worth it to add them as external components just to have const qualification working with std::unique_ptr?

[–] JustCopyingOthers@lemmy.ml 1 points 2 years ago

It's a while since I saw the presentation, but I think they're both header only classes. Available at https://github.com/jbcoe