Hacker News new | ask | show | jobs
by gpderetta 1031 days ago
No need for T to have a clone function. You can use standard type erasure techniques. Consider how std:: function or std::any is implemented.