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
Maybe you were asking if it implements custom destructors? GC?
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>.
Maybe you were asking if it implements custom destructors? GC?