[Rcpp-commits] r181 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Nov 20 04:09:08 CET 2009


Author: edd
Date: 2009-11-20 04:09:08 +0100 (Fri, 20 Nov 2009)
New Revision: 181

Modified:
   pkg/src/RcppStringVectorView.cpp
   pkg/src/RcppVectorView.h
Log:
minor fix regarding inline


Modified: pkg/src/RcppStringVectorView.cpp
===================================================================
--- pkg/src/RcppStringVectorView.cpp	2009-11-18 23:11:44 UTC (rev 180)
+++ pkg/src/RcppStringVectorView.cpp	2009-11-20 03:09:08 UTC (rev 181)
@@ -46,6 +46,6 @@
     return CHAR(STRING_ELT(v,i));
 }
 
-int RcppStringVectorView::size() const { 
+inline int RcppStringVectorView::size() const { 
     return length; 
 }

Modified: pkg/src/RcppVectorView.h
===================================================================
--- pkg/src/RcppVectorView.h	2009-11-18 23:11:44 UTC (rev 180)
+++ pkg/src/RcppVectorView.h	2009-11-20 03:09:08 UTC (rev 181)
@@ -28,8 +28,8 @@
 class RcppVectorView {
 public:
     RcppVectorView(SEXP vec);
-    inline int size() const;
-    inline T operator()(int i) const;
+    int size() const;
+    T operator()(int i) const;
 private:
     int len;
     T *v;



More information about the Rcpp-commits mailing list