From 2e1ab94bbc51d6f8ef1d9df3572963db7b20b403 Mon Sep 17 00:00:00 2001 From: lqdev Date: Thu, 20 Jun 2024 22:31:20 +0200 Subject: [PATCH] new + correct timestamp in id --- content/programming/languages/cxx.tree | 2 +- content/treehouse/new.tree | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/content/programming/languages/cxx.tree b/content/programming/languages/cxx.tree index 3440122..a835be5 100644 --- a/content/programming/languages/cxx.tree +++ b/content/programming/languages/cxx.tree @@ -5,7 +5,7 @@ % content.link = "programming/languages/cxx/access-modifiers-as-labels" redirect_from = ["programming/cxx/access-modifiers-as-labels"] - id = "01J0VN48AZGGM35KT8ANEA2B9Q" + id = "01H9R1KJESGGM35KT8ANEA2B9Q" + :page: access modifiers as labels (`private:`, `protected:`, and `public:`) % content.link = "programming/languages/cxx/shared-unique-ptr-deleter" diff --git a/content/treehouse/new.tree b/content/treehouse/new.tree index e6285a4..90a3534 100644 --- a/content/treehouse/new.tree +++ b/content/treehouse/new.tree @@ -10,6 +10,15 @@ [read][page:programming/blog/tairu] +- a friend of mine asked if it makes sense to define your own wrapper class for `SDL_Window` the way [Lazy Foo](https://lazyfoo.net/tutorials/SDL/10_color_keying/index.php) does it. +I told him there's no reason to do that in modern C++, because `std::unique_ptr` can do everything for you anyways. + +### freeing C memory automatically using `std::unique_ptr` and `std::shared_ptr` + +on another note, I did read a blog post about this once somewhere, but couldn't be bothered to find it. so there you go! I made a post about this too. + +[read][page:programming/languages/cxx/shared-unique-ptr-deleter] + % id = "01J0KRPMV7SS48B64BFCJZK7VQ" - it's updatin' time! I took some time to clean up old pages and update my *about me*.\ over time I've been learning how to write content on the treehouse effectively, and the new about me reflects that.