I still feel somewhat queasy with this whole situation! We need to return the product of the DSL/Builder by value, but we also want to swap away the current contents before starting the mutation, and we do not want a stateful lifecycle for the mutator implementation. Which means, we need to swap right at construction, and then we copy -- TADAAA! Thus I'm going for the solution to disallow copying of the mutator, yet to allow moving, and to change the builder to move its product into place. Probably should even push this policy up into the base class (TreeMutator) to set everyone straight. Looks like this didn't show up with the test dummy implementation just because in this case the src buffer also lived within th TestMutationTarget, which is assumed to sit where it is, so effectively we moved around only pointers. |
||
|---|---|---|
| .. | ||
| backend | ||
| common | ||
| gui | ||
| include | ||
| lib | ||
| lumiera | ||
| plugin | ||
| proc | ||
| tool | ||
| .gitignore | ||
| DIR_INFO | ||
| doxygen.dox | ||
| SConscript | ||