Closed jakebeal closed 7 years ago
The functionalComponents property should only accept FunctionalComponent objects...not ComponentDefinitions. Use FunctionalComponent& cas9_fc = CRPa.functionalComponents.create() to instantiate it.
Huh... my assumption is that this was overriding to create the right object type. Should have remembered that C++ doesn't support being that fancy...
Well, new bug then: this should have thrown a compile error, rather than blithely accepting my incorrect typing.
If you include a ComponentDefinition into a ModuleDefinition, libSBOL inlines it into the ModuleDefinition and will not allow it to exist at the top level. This prevents use of a ComponentDefinition in more than one module.
An example of this failure: