File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
inst/include/Rcpp/Benchmark Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 22
33 * vignettes/Rcpp-FAQ.Rnw: Render code with background boxen
44 * vignettes/Rcpp-package.Rnw: Idem
5- * vignettes/Rcpp-modules.Rnw: Idem
6- * vignettes/Rcpp-extending.Rnw: Idem
7- * vignettes/Rcpp-sugar.Rnw: Idem
5+ * vignettes/Rcpp-modules.Rnw: Idem
6+ * vignettes/Rcpp-extending.Rnw: Idem
7+ * vignettes/Rcpp-sugar.Rnw: Idem
8+
9+ * inst/include/Rcpp/Benchmark/Timer.h: Reverted back to using
10+ iterators via use of anonymous namespace for accessors
811
9122014-01-31 JJ Allaire <jj@rstudio.org>
1013
Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ namespace Rcpp{
100100
101101#endif
102102
103+ namespace {
104+ std::string get_first (const std::pair<std::string,nanotime_t >& pair) {
105+ return pair.first ;
106+ }
107+ double get_second (const std::pair<std::string,nanotime_t >& pair){
108+ return static_cast <double >(pair.second );
109+ }
110+ }
103111
104112 class Timer {
105113 public:
You can’t perform that action at this time.
0 commit comments