> I understand your point, and am not sure how to proceed without it. Just make sure you clone the initial list once, or use another C++ data structure (e.g. std::vector) that can grow efficiently.
Alternatively, you could create your own alternative to as.dendrogram that doesn't create a hierarchical structure. (That's what I'd try first) Hadley -- Chief Scientist, RStudio http://had.co.nz/ _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel