> std::sort(data.front(), data.back()); front() and back() return references to the first and last items. I.e. they return doubles, not iterators. I think what you wanted was: std::sort(data.begin(),data.end());
Darren -- Darren Cook, Software Researcher/Developer http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles) _______________________________________________ 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