code generation changes boost::optional and tribool

This commit is contained in:
Thomas Krijnen
2021-07-29 14:53:26 +02:00
parent c694b5534a
commit 2cd85234bd
3 changed files with 28 additions and 15 deletions
@@ -173,6 +173,9 @@ class Mapping:
elif isinstance(type_str, nodes.AggregationType):
is_nested_list = isinstance(attr_type.type, nodes.AggregationType)
ty = self.get_parameter_type(attr_type.type if is_nested_list else attr_type)
# We do not use pointers in aggregate_of<T>. aggregate_of has member vector<T*>
ty = ty.replace("*", "")
if self.schema.is_select(attr_type.type):
type_str = templates.untyped_list
elif self.schema.is_simpletype(ty) or str(ty) in self.express_to_cpp_typemapping.values():