[Rcpp-commits] r176 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Nov 16 02:22:17 CET 2009


Author: edd
Date: 2009-11-16 02:22:17 +0100 (Mon, 16 Nov 2009)
New Revision: 176

Modified:
   pkg/src/RcppDateVector.cpp
   pkg/src/RcppDatetimeVector.cpp
   pkg/src/RcppStringVector.cpp
Log:
fix minor copy/paste error with inline in cpp files


Modified: pkg/src/RcppDateVector.cpp
===================================================================
--- pkg/src/RcppDateVector.cpp	2009-11-16 01:09:41 UTC (rev 175)
+++ pkg/src/RcppDateVector.cpp	2009-11-16 01:22:17 UTC (rev 176)
@@ -38,7 +38,7 @@
     delete [] v;
 }
 
-inline RcppDate& RcppDateVector::operator()(int i) {
+RcppDate& RcppDateVector::operator()(int i) {
     if (i < 0 || i >= length) {
 	std::ostringstream oss;
 	oss << "RcppDateVector: subscript out of range: " << i;

Modified: pkg/src/RcppDatetimeVector.cpp
===================================================================
--- pkg/src/RcppDatetimeVector.cpp	2009-11-16 01:09:41 UTC (rev 175)
+++ pkg/src/RcppDatetimeVector.cpp	2009-11-16 01:22:17 UTC (rev 176)
@@ -37,7 +37,7 @@
     delete [] v;
 }
 
-inline RcppDatetime & RcppDatetimeVector::operator()(int i) const {
+RcppDatetime & RcppDatetimeVector::operator()(int i) const {
     if (i < 0 || i >= length) {
 	std::ostringstream oss;
 	oss << "RcppDatetimeVector: subscript out of range: " << i;

Modified: pkg/src/RcppStringVector.cpp
===================================================================
--- pkg/src/RcppStringVector.cpp	2009-11-16 01:09:41 UTC (rev 175)
+++ pkg/src/RcppStringVector.cpp	2009-11-16 01:22:17 UTC (rev 176)
@@ -40,7 +40,7 @@
     delete [] v;
 }
 
-inline std::string& RcppStringVector::operator()(int i) const {
+std::string& RcppStringVector::operator()(int i) const {
     if (i < 0 || i >= length) {
 	std::ostringstream oss;
 	oss << "RcppStringVector: subscript out of range: " << i;



More information about the Rcpp-commits mailing list