Bartek's coding blog

C++ and native programming stories.

Bartek's coding blog

  • Home
  • Start Here
  • About
  • Resources
  • Archives
  • Privacy
  • My Book!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. More details

pimpl vs Abstract Interface - a practical tutorial

15 January 2018

Let’s see pimpl and its alternatives in a real application! I’ve implemented a small utility app - for file compression - where we can experiment with various designs. Is it better to use pimpl or maybe abstract interfaces? Read on to discover. Intro In my previous post I covered the pimpl pattern.

READ MORE...

How a weak_ptr might prevent full memory cleanup of managed object

11 December 2017

When I was working on the Smart Pointer Reference Card I run into a quite interesting issue. It appears that in some cases memory allocated for the object controlled by smart_ptr might not be released until all weak pointers are also ‘dead’. Such case was surprising to me because I thought that the moment the last share_ptr goes down, the memory is released.

READ MORE...

© 2011-2019, Bartlomiej Filipek
Disclaimer: Any opinions expressed herein are in no way representative of those of my employers. All data and information provided on this site is for informational purposes only. I try to write complete and accurate articles, but the web-site will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use.
This site contains ads or referral links, which provide me with a commission. Thank you for your understanding.
Built on the Hugo Platform!