Re:Deprecating Raw Pointers in C++20
by evincarofautumn on Sunday April 01, 2018 @09:47AM
(#16728225)
Honestly this wouldn’t be a bad idea for consistency, teaching, and template programming purposes:
I’ve actually used this before to parameterise a struct/class with an ownership policy, for example:
Now Wrapper<std::raw_ptr> is a non-owning Wrapper, while Wrapper<std::unique_ptr> is an owning one.
[ Parent
| on HN ]
There are no comments on this comment yet.