Skip to content

Commit 33b1e53

Browse files
author
thirdwing
committed
fix ClustMMDD
1 parent 19f04ed commit 33b1e53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/include/Rcpp/vector/Vector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ class Vector :
124124
Storage::set__( Rf_allocVector( RTYPE, size) ) ;
125125
init() ;
126126
}
127+
128+
Vector( const int& size ) {
129+
Storage::set__( Rf_allocVector( RTYPE, size) ) ;
130+
init() ;
131+
}
127132

128133
Vector( const Dimension& dims) {
129134
Storage::set__( Rf_allocVector( RTYPE, dims.prod() ) ) ;

0 commit comments

Comments
 (0)