This is an issue with the current development branch.
In working through #217, I found problems with the constructors:
[x] samples lists should not be forwarded. they should be taken is as const references. Allowing moves isn't worth the complexity.
[x] The overload of marginal_tree::forward_input_samples for rvalue references is incorrect.
[x] Unit tests are needed for the case of sample groups in combination with preserved nodes. The current template type is the same for each sample list for this constructor, which cannot be correct.
This is an issue with the current development branch.
In working through #217, I found problems with the constructors:
marginal_tree::forward_input_samples
forrvalue
references is incorrect.