File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ 2014-11-25 Dirk Eddelbuettel <edd@debian.org>
2+
3+ * inst/include/Rcpp/grow.h: Apply additional Shield<> use around tail
4+ object as suggested by Martin Morgan on the rcpp-devel list
5+
162014-11-24 Dirk Eddelbuettel <edd@debian.org>
27
38 * inst/include/Rcpp/config.h: Release version is still 0.11.3
Original file line number Diff line number Diff line change 1414 \item \code {Rcpp :: stop } now supports improved \code {printf }- like syntax
1515 using the small tinyformat header - only library (following a similar
1616 implementation in Rcpp11 )
17+ \item Pairlist objects are now protected via an additional \code {Shield <> }
18+ as suggested by Martin Morgan on the rcpp - devel list.
1719 }
1820 \item Changes in Rcpp Attributes :
1921 \itemize {
Original file line number Diff line number Diff line change @@ -61,11 +61,13 @@ namespace Rcpp {
6161 */
6262 template <typename T>
6363 SEXP grow (const T& head, SEXP tail) {
64- return internal::grow__dispatch ( typename traits::is_named<T>::type (), head, tail );
64+ Shield<SEXP> y (tail);
65+ return internal::grow__dispatch (typename traits::is_named<T>::type (), head, y);
6566 }
6667
6768 inline SEXP grow ( const char * head, SEXP tail ) {
68- return grow ( Rf_mkString (head), tail ) ;
69+ Shield<SEXP> y (tail);
70+ return grow (Rf_mkString (head), y);
6971 }
7072
7173 #include < Rcpp/generated/grow__pairlist.h>
You can’t perform that action at this time.
0 commit comments