I’m wondering if it’s OK to introduce an additional bit to ODS (such as genStorageClassForwardDecl) in order to control forward decl, or there is a better way to do that. WDYT?
Can’t you forward define it with a using declaration and use this alias in ODS?
Edit: actually it may not like redefining the alias with a forward decl…
Yes I guess we cannot do that with using decl. In that case we have to declare another struct to inherit the template class, which is OK but nicer if we don’t have to insert unnecessary boilerplates.
Other idea: should we just not emit a forward decl when genStorageClass = false ?