Skip to content

Commit 418259f

Browse files
added Vector(const char*) ctor
1 parent ea348f5 commit 418259f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
std::deque, and std::list so that we use their faster range constructor when
99
we can, and so let the STL optimize how data is copied
1010
* include/Rcpp/api/meat/export.h : Implementation of the above
11-
11+
* include/Rcpp/vector/Vector.h : added Vector( const char* ) ctor
12+
* DESCRIPTION : bump to 0.10.4.5 (for RcppExtras)
13+
1214
2013-09-15 Dirk Eddelbuettel <edd@debian.org>
1315

1416
* inst/include/Rcpp/InputParameter.h (Rcpp): Add 'const' case

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 0.10.4.4
3+
Version: 0.10.4.5
44
Date: $Date$
55
Author: Dirk Eddelbuettel and Romain Francois, with contributions
66
by Douglas Bates, John Chambers and JJ Allaire

inst/include/Rcpp/vector/Vector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ class Vector :
8787
RCPP_DEBUG_2( "Vector<%d>( const std::string& = %s )", RTYPE, st.c_str() )
8888
update_vector();
8989
}
90+
Vector( const char* st ) : RObject( internal::vector_from_string<RTYPE>(st) ){
91+
RCPP_DEBUG_2( "Vector<%d>( const std::string& = %s )", RTYPE, st.c_str() )
92+
update_vector();
93+
}
94+
9095
Vector( const int& siz, stored_type (*gen)(void) ) : RObject(Rf_allocVector( RTYPE, siz)) {
9196
RCPP_DEBUG_2( "Vector<%d>( const int& siz = %s, stored_type (*gen)(void) )", RTYPE, siz )
9297
update_vector() ;

0 commit comments

Comments
 (0)