[Rprotobuf-commits] r705 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jan 4 03:17:55 CET 2014


Author: murray
Date: 2014-01-04 03:17:55 +0100 (Sat, 04 Jan 2014)
New Revision: 705

Modified:
   pkg/src/S4_classes.h
Log:
Add forward declarations of two classes used in this header but not
otherwise included (e.g. this previously depended on the include order
of headers).  Found by clang IncludeWhatYouUse.



Modified: pkg/src/S4_classes.h
===================================================================
--- pkg/src/S4_classes.h	2014-01-04 02:15:43 UTC (rev 704)
+++ pkg/src/S4_classes.h	2014-01-04 02:17:55 UTC (rev 705)
@@ -22,6 +22,9 @@
 
 namespace rprotobuf {
 
+class ZeroCopyInputStreamWrapper;
+class ZeroCopyOutputStreamWrapper;
+
 class S4_EnumValueDescriptor : public Rcpp::S4 {
    public:
     S4_EnumValueDescriptor(const GPB::EnumValueDescriptor* d) : S4("EnumValueDescriptor") {
@@ -192,7 +195,7 @@
     S4_ArrayInputStream(Rcpp::RawVector payload, int block_size) : S4("ArrayInputStream") {
         GPB::io::ArrayInputStream* stream =
             new GPB::io::ArrayInputStream(payload.begin(), payload.size(), block_size);
-        Rcpp::XPtr<rprotobuf::ZeroCopyInputStreamWrapper> wrapper(
+        Rcpp::XPtr<ZeroCopyInputStreamWrapper> wrapper(
             new ZeroCopyInputStreamWrapper(stream), true, R_NilValue, payload);
         slot("pointer") = wrapper;
     }



More information about the Rprotobuf-commits mailing list