3 ms·
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.
by gpderetta 3y 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.