Generate #include <typeinfo> if we're about to use typeid() operator
This commit is contained in:
1 parent
b8ccb8347b
commit
0ef71e5c86
1 file changed
+1
@@ -910,6 +910,7 @@ class CppClass(object):
|
||||
if self.helper_class is None:
|
||||
if not self.is_singleton:
|
||||
self.helper_class = CppHelperClass(self)
|
||||
self.module.add_include('<typeinfo>')
|
||||
return self.helper_class
|
||||
|
||||
def get_type_narrowing_root(self):
|
||||
|
||||
Reference in new issue
Block a user