Only allow exact type (not subclasses) in C++
Only allow exact type (not subclasses) in C++
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/19115554/marcellperger)MarcellPerger
(stackoverflow.com/users/7582247/ted-lyngmo)Ted Lyngmo
(stackoverflow.com/users/7691729/quimby)Quimby
(stackoverflow.com/users/2684539/jarod42)Jarod42
(stackoverflow.com/users/5740428/jan-schultke)Jan Schultke
A special thanks goes out to the (https://stackoverflow.com/questions/76588378/only-allow-exact-type-not-subclasses-in-c)Stackexchange community
I wish you all a wonderful day! Stay safe :)
subclass c++ invariance types