std::dynamic_pointer_cast
encountered an error source type is not polymorphic
The reason is that the type to be converted is not polymorphic, that is, there is no virtual function
Simply define the destructor of the base class as a base class
virtual ~A() = default;
Read More:
- [Solved] runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator<int>>‘
- C++ Error: terminating with uncaught exception of type std::out_of_range: vector Abort trap: 6
- [Solved] Compilation error: dereferencing pointer to incomplete type…
- Request processing failed; nested exception is com.alibaba.fastjson.JSONException: can not cast to J
- [Solved] A-LOAM Ceres Compile Error: error: ‘integer_sequence’ is not a member of ‘std‘
- Abnormal [System.InvalidOperationException: custom type mapping for ‘xxx’ is not specified or is not a solution
- [Solved] MindSpore Error: Data type conversion of ‘Parameter’ is not supporte
- [Solved] Mybatis Error: CannotFindDataSourceException: dynamic-datasource can not find primary datasource
- [Solved] CCS compilation and debug error: Source lookup: unable to restore CPU specific source container – expecting valid source container id value.
- [Solved] MongoDB Error: TypeError: Object of type ObjectId is not JSON serializable
- [Solved] MinIO Start Error: “WARNING: Console endpoint is listening on a dynamic port…”
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- [Solved] fastjson Error: com.alibaba.fastjson.JSONObject cannot be cast to xxxx
- The method println(boolean) in the type PrintStream is not applicable for the arguments (void) Error
- How to Solve error C2039: “to_ String “: not a member of” STD “
- How to Solve Error: Element ‘dependency’ cannot have character [children], because the type’s content type is element-
- [Solved] Go language gob serialization pointer cannot be addressed Error
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’
- How to Solve Doris dynamic partition table routineload Error
- [Local Precompilation Error] do not set execute permissions for source files