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

C++

1783 readers
1 users here now

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

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] lysdexic 1 points 1 year 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?

[โ€“] [email protected] 1 points 1 year 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