5 ms·
I 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 com
by tsimionescu 2y ago
I 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