News for hackers. Stuff that matters.
Re:Beautiful Type Erasure with C++26 Reflection by schaefer on Tuesday July 14, 2026 @12:24PM (#48909253)
> Or were you asking if it leaks memory?

yeah,

If variable c where of type void* instead of duck<Container>, the assignment on line 13 would leak the memory used by the vector<int>.

There are no comments on this comment yet.