On Sunday, 8 June 2025 at 14:29:27 UTC, mitgedanken wrote:
I understand why the given types are not compatible.But not how I can store any base type regardless its specialization.
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