Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Beautiful Type Erasure with C++26 Reflection. Parent comment
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.
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>.