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 2
2
3
3
* vignettes/Rcpp-FAQ.Rnw: Render code with background boxen
4
4
* 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
8
11
9
12
2014-01-31 JJ Allaire <
[email protected] >
10
13
Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ namespace Rcpp{
100
100
101
101
#endif
102
102
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
+ }
103
111
104
112
class Timer {
105
113
public:
You can’t perform that action at this time.
0 commit comments