“Invalid covariant return type” errors in nested classes with methods returning template-based objects

后端 未结 3 2032
执念已碎
执念已碎 2020-12-18 06:15

The following C++ code gives me these errors when compiled:

covariant.cpp:32:22: error: invalid covariant return type for ‘virtual Q C::test()’
cova         


        
3条回答
提交回复
热议问题