Skip to content
Snippets Groups Projects

[Fix] Memory leak due to containers serialization

Merged Maxence Naud requested to merge fix/GenericOp into standardization
All threads resolved!
3 files
+ 5
13
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -110,7 +110,7 @@ public:
template<typename T, typename VT = _Decay_if_not_any<T>, std::enable_if_t<std::is_copy_constructible<VT>::value, bool> = true>
explicit _any(T&& value)
: _M_manager(&Manager<VT>::manage),
_M_data(new VT{std::forward<T>(value)})
_M_data(new VT{std::forward<T>(value)})
{}
~_any()
Loading