Skip to content
Snippets Groups Projects

[Fix] Memory leak due to containers serialization

Merged Maxence Naud requested to merge fix/GenericOp into standardization
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -27,7 +27,7 @@ private:
inline _ValueType& any_cast_ref(const _any& __any)
{
using _Up = std::remove_cv_t<std::remove_reference_t<_ValueType>>;
assert((std::__or_<std::is_reference<_ValueType>, std::is_copy_constructible<_ValueType>>::value && "Template argument must be a reference or CopyConstructible type"));
assert(((std::is_reference<_ValueType>::value || std::is_copy_constructible<_ValueType>::value) && "Template argument must be a reference or CopyConstructible type"));
assert((std::is_constructible<_ValueType, const _Up&>::value && "Template argument must be constructible from a const value."));
assert(std::is_object<_Up>::value);
assert(__any.type() == typeid(_Up));
Loading