Skip to content

Commit 259f39d

Browse files
committed
Workaround for #126
1 parent 6e4f8ad commit 259f39d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ChangeLog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
2014-03-09 Kevin Ushey <[email protected]>
2+
3+
* inst/include/Rcpp/vector/const_string_proxy.h: Workaround for issue
4+
with constructing proxies from CHARSXPs
5+
16
2014-03-08 Kevin Ushey <[email protected]>
27

3-
* inst/include/Rcpp/proxy/proxy.h: Make sure proxys know about the
8+
* inst/include/Rcpp/proxy/proxy.h: Make sure proxies know about the
49
const char* wrap shortcut
510

611
2014-03-08 Dirk Eddelbuettel <[email protected]>

inst/include/Rcpp/vector/const_string_proxy.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ namespace internal{
4141
* @param index index
4242
*/
4343
const_string_proxy( VECTOR& v, int index_ ) : parent(&v), index(index_){}
44+
45+
const_string_proxy(SEXP x): parent(0), index(0) {
46+
Vector<RTYPE> tmp(x);
47+
parent = &tmp;
48+
}
4449

4550
const_string_proxy( const const_string_proxy& other ) :
4651
parent(other.parent), index(other.index){} ;

0 commit comments

Comments
 (0)