Better Singleton classes C++: Revision history

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

28 December 2023

27 December 2023

16 May 2023

28 March 2023

16 February 2023

2 February 2023

  • curprev 20:3420:34, 2 February 2023Jimg talk contribs 2,655 bytes +2,655 Created page with "We use lots of Singleton classes in the BES Framework. One issue with that pattern is that memory is usually not returned to the heap before the process exits, leaving tools like valgrind to report the memory as leaked. This is misleading and can be ignored, except that it's a great way to hide ''real'' leaks behind the noise in a sea of false positives. Here's a way around that using C++'s unquie_ptr. ## The basic plan I'll use a real example of this from the BES; the..."