by frankreyes · 3y ago · 0 comments
It would be nice to see if we can have a sub set of C++ that forces us to only use std::make_unique or std::make_shared calls.
Not really. Both Box and Rc/Arc are first and foremost library features implemented using the equivalent of malloc() and free(). Box is a bit special due to its deref semantics, but other than that, there's nothing stopping you from implementing them or something else yourself.