We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c8557 commit dc6e892Copy full SHA for dc6e892
rtb/datacache/entity_cache.hpp
@@ -286,7 +286,9 @@ class entity_cache
286
287
void grow_memory(size_t size) const {
288
try {
289
- _segment_ptr.reset() ;
+ if constexpr ( !std::is_same_v<segment_t, boost::interprocess::managed_heap_memory> ) {
290
+ _segment_ptr.reset() ;
291
+ }
292
Memory::grow(_segment_ptr, _store_name.c_str(), size) ;
293
} catch ( const bad_alloc_exception_t &e ) {
294
LOG(debug) << boost::core::demangle(typeid(*this).name())
0 commit comments