-
The AIO layer had two obvious memory leaks and I'm quite sure there are more. So we should consider wrapping all (at least the easy ones ^^) explicit new/delete with smart pointers. We also could get …
-
@Cullen-Enerdyne What do you think about doing something like this:
Create a new type `UPtr` that is just `std::unique_ptr()`.
```
template
using UPtr = std::unique_ptr;
```
We can if we …
-
# Smart Pointers in C++ – Christian aan de Wiel – C++ Developer
Smart pointers are nothing more than a simple wrapper around regular pointer types in C++, which ensure that an object is automatically…
-
Raw pointers are error-prone and should be replaced by std::*_ptr, depending on the use case. It's also easier to reason about the data-flow of the application if shared / unique and weak pointers are…
-
When following the exercises, it is nice to check the suggested reading.
For the smart_pointers exercises, it includes _a lot_ of reading:
- [Smart Pointers](https://doc.rust-lang.org/book/ch15-00-s…
-
Remove own smart pointer classes or rationalize their existance.
- Tp::WeakPtr
- Tp::SharedPtr
- Tp::RefCounted
-
Replace all the pointers with smart pointers.
-
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the [open](https://github.com/clap-rs/clap/issues…
-
Update the code to use smart pointers instead of bare pointers
-
**Describe your use case**
Currently, the codebase relies heavily on raw pointers and occasionally C-style arrays. There are many reasons why using these is a bad idea (summarized from "Effective Mod…