On Sunday, 8 June 2025 at 22:37:23 UTC, Andy Valencia wrote:
On Sunday, 8 June 2025 at 14:29:27 UTC, mitgedanken wrote:
[...]

I know OO is mostly looked down upon, but if you have a common root class and each subclass specializes, you can have a variable of the root class' type and it'll store pointers to either.

Andy

I know how to use OO; i just wanted to know if there is a way with templates and others.

Thanks to y'all.

Reply via email to