File tree Expand file tree Collapse file tree 6 files changed +22
-5
lines changed
Expand file tree Collapse file tree 6 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 66
77language : c
88
9+ sudo : required
10+
911env :
1012 global :
1113 - R_BUILD_ARGS="--no-build-vignettes --no-manual"
@@ -21,6 +23,7 @@ before_install:
2123 - sudo apt-get update -q
2224
2325install :
26+ # # note that we currently depend on highlight 0.4.4.1 from the PPA as 0.4.5 has issues
2427 - ./travis-tool.sh install_aptget r-cran-runit r-cran-inline r-cran-rbenchmark r-cran-highlight r-cran-pkgkitten
2528
2629script :
Original file line number Diff line number Diff line change 1+ 2015-04-22 Kevin Ushey <kevinushey@gmail.com>
2+
3+ * inst/include/Rcpp/utils/tinyformat.h: don't use C++11 features
4+
5+ 2015-04-14 Dirk Eddelbuettel <edd@debian.org>
6+
7+ * .travis.yml (sudo): Adding 'sudo: required' to force older Travis backend
8+
192014-04-14 Romain Francois <romain@r-enthusiasts.com>
210
311 * inst/include/Rcpp/api/meat/is.h: added is__simple<Rcomplex>
1321 * inst/include/Rcpp/*: Removed BEGIN_RCPP and END_RCPP from a few files
1422 * src/Module.cpp: But added here
1523
24+ 2015-04-19 Jonathan Marshall <jmarshall@xbmc.org>
25+
26+ * inst/include/Rcpp/vector/string_proxy.h: Adds empty() constructor
27+ * inst/include/Rcpp/vector/const_string_proxy.h: Ditto
28+
16292015-03-18 Dmitrii Meleshko <Dmitrii@MeleshkoDima.none>
1730
1831 * inst/include/Rcpp/vector/Matrix.h: Added default ctor for 0x0 matrix
3851
3952 * inst/include/RcppCommon.h: Move headers into major/minor protection
4053 * inst/include/Rcpp/r/headers.h: New file
41-
54+
42552015-03-04 Dirk Eddelbuettel <edd@debian.org>
4356
4457 * DESCRIPTION: Release 0.11.5
Original file line number Diff line number Diff line change 1111 \item Header files try harder not to let macroas leak out.
1212 \item Matrices now have a default constructor for zero - by - zero dimension
1313 matrices (via pull request by Dmitrii Meleshko ).
14+ \item A new \code {empty()} string constructor was added.
1415 }
1516 \item Changes in Rcpp Attributes :
1617 \itemize {
Original file line number Diff line number Diff line change @@ -128,10 +128,8 @@ namespace Rcpp {
128128}
129129#define TINYFORMAT_ERROR (REASON ) ::Rcpp::stop(REASON)
130130
131- // Define for C++11 variadic templates which make the code shorter & more
132- // general. If you don't define this, C++11 support is autodetected below.
133- // #define TINYFORMAT_USE_VARIADIC_TEMPLATES
134-
131+ // don't use C++11 features (support older compilers)
132+ #define TINYFORMAT_NO_VARIADIC_TEMPLATES
135133
136134// ------------------------------------------------------------------------------
137135// Implementation details.
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ namespace internal{
9393 inline iterator begin () const { return CHAR ( STRING_ELT ( *parent, index ) ) ; }
9494 inline iterator end () const { return begin () + size () ; }
9595 inline int size () const { return strlen ( begin () ) ; }
96+ inline bool empty () const { return *begin () == ' \0 ' ; }
9697 inline reference operator []( int n ){ return *( begin () + n ) ; }
9798
9899 bool operator ==( const char * other){
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ namespace internal{
158158 inline iterator begin () const { return CHAR ( STRING_ELT ( *parent, index ) ) ; }
159159 inline iterator end () const { return begin () + size () ; }
160160 inline int size () const { return strlen ( begin () ) ; }
161+ inline bool empty () const { return *begin () == ' \0 ' ; }
161162 inline reference operator []( int n ){ return *( begin () + n ) ; }
162163
163164 template <typename UnaryOperator>
You can’t perform that action at this time.
0 commit comments