Skip to content

Commit 2637ca8

Browse files
author
Qiang Kou
committed
explicit is not necessary
1 parent 792784f commit 2637ca8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inst/include/Rcpp/Benchmark/Timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace Rcpp{
110110
}
111111

112112
operator SEXP() const {
113-
size_t n = data.size();
113+
R_xlen_t n = data.size();
114114
NumericVector out(n);
115115
CharacterVector names(n);
116116
for (size_t i=0; i<n; i++) {

inst/include/Rcpp/vector/Vector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Vector :
8989
fill( u ) ;
9090
}
9191

92-
explicit Vector( const int& size, const stored_type& u ) {
92+
Vector( const int& size, const stored_type& u ) {
9393
RCPP_DEBUG_2( "Vector<%d>( const R_xlen_t& size = %d, const stored_type& u )", RTYPE, size)
9494
Storage::set__( Rf_allocVector( RTYPE, size) ) ;
9595
fill( u ) ;
@@ -107,7 +107,7 @@ class Vector :
107107
Storage::set__(internal::vector_from_string<RTYPE>(st) ) ;
108108
}
109109

110-
explicit Vector( const int& siz, stored_type (*gen)(void) ) {
110+
Vector( const int& siz, stored_type (*gen)(void) ) {
111111
RCPP_DEBUG_2( "Vector<%d>( const int& siz = %s, stored_type (*gen)(void) )", RTYPE, siz )
112112
Storage::set__( Rf_allocVector( RTYPE, siz) ) ;
113113
std::generate( begin(), end(), gen );

0 commit comments

Comments
 (0)