Skip to content

Commit 4108bb7

Browse files
Merge branch 'master' of github.com:RcppCore/Rcpp
2 parents 3e4b708 + c67c899 commit 4108bb7

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
language: c
88

9+
sudo: required
10+
911
env:
1012
global:
1113
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
@@ -21,6 +23,7 @@ before_install:
2123
- sudo apt-get update -q
2224

2325
install:
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

2629
script:

ChangeLog

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2015-04-22 Kevin Ushey <[email protected]>
2+
3+
* inst/include/Rcpp/utils/tinyformat.h: don't use C++11 features
4+
5+
2015-04-14 Dirk Eddelbuettel <[email protected]>
6+
7+
* .travis.yml (sudo): Adding 'sudo: required' to force older Travis backend
8+
19
2014-04-14 Romain Francois <[email protected]>
210

311
* inst/include/Rcpp/api/meat/is.h: added is__simple<Rcomplex>
@@ -13,6 +21,11 @@
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 <[email protected]>
25+
26+
* inst/include/Rcpp/vector/string_proxy.h: Adds empty() constructor
27+
* inst/include/Rcpp/vector/const_string_proxy.h: Ditto
28+
1629
2015-03-18 Dmitrii Meleshko <[email protected]>
1730

1831
* inst/include/Rcpp/vector/Matrix.h: Added default ctor for 0x0 matrix
@@ -38,7 +51,7 @@
3851

3952
* inst/include/RcppCommon.h: Move headers into major/minor protection
4053
* inst/include/Rcpp/r/headers.h: New file
41-
54+
4255
2015-03-04 Dirk Eddelbuettel <[email protected]>
4356

4457
* DESCRIPTION: Release 0.11.5

inst/NEWS.Rd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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{

inst/include/Rcpp/utils/tinyformat.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

inst/include/Rcpp/vector/const_string_proxy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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){

inst/include/Rcpp/vector/string_proxy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)