Skip to content

Commit 481f7c6

Browse files
raakella1Ravi Nagarjun Akella
andauthored
make the destructor of obj life counter virtual for its destructor to be called when the derived class is destructed (#250)
Co-authored-by: Ravi Nagarjun Akella <raakella1@$HOSTNAME>
1 parent 3fa45bf commit 481f7c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class SISLConan(ConanFile):
1111
name = "sisl"
12-
version = "8.9.0"
12+
version = "8.9.1"
1313
homepage = "https://github.com/eBay/sisl"
1414
description = "Library for fast data structures, utilities"
1515
topics = ("ebay", "components", "core", "efficiency")

include/sisl/utility/obj_life_counter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct ObjLifeCounter {
140140
s_type.m_dummy = 0; // To keep s_type initialized during compile time
141141
}
142142

143-
~ObjLifeCounter() {
143+
virtual ~ObjLifeCounter() {
144144
assert(s_alive.load() > 0);
145145
s_alive.fetch_sub(1, std::memory_order_relaxed);
146146
}

0 commit comments

Comments
 (0)