2 ms·
I think one problem here is that a lot of codebases have their own smart pointers and unfortunately the only currency type is the unsafe one :(
by saagarjha 2y ago
I think one problem here is that a lot of codebases have their own smart pointers and unfortunately the only currency type is the unsafe one :(
- tsimionescu 2y agoI don't think this is the only reason. If it were, they could easily have added overloads that work with both std smart pointers and with plain pointers for compatibility. Or they could add pointer type template parameters, maybe with concepts for the right ownership semantics.
- saagarjha 2y agoThat would be too complex. I don't think C++ developers would be able to handle it