Closed phako closed 11 months ago
I think we should call automatically enableDeepValidation()
when validate(TransferElementID())
is called (that will validate the initial value). We should also force people to actually do that call by throwing an exception if the first call to validate()
has a valid (i.e. not default-constructed) TransferElementID
. The pointer to the owning module can be extracted e.g. from the first accessor passed to the add()
call (via the slightly ugly dynamic_cast<Module*>(node.getOwningModule())->findApplicationModule()
call).
Sorry, I screwed up the code formatting correct yesterday. Should I fix this and then merge? Or do you still have open issues to change?
Need to write a ticket for the new test, but should be done code-wise
@mhier I have changed the API - it is backward compatible now