What is Nostr?
Adam Sawicki /
npub1v7v…7f46
2024-06-10 08:38:31
in reply to nevent1q…vpl7

Adam Sawicki on Nostr: I am not a C++ RAII purist, but in my personal code I do use unique_ptr (for single ...

I am not a C++ RAII purist, but in my personal code I do use unique_ptr (for single objects) and std::vector (for dynamic arrays) everywhere. I never call `new` or `delete` explicitly. I believe it gives a lot of Rust-like safety and convenience in memory management.
Author Public Key
npub1v7vmdlyv7gs2rjkj2d8jfsga8sl6gxgf3rgge6yam8g5xzestesqtn7f46