Oh boy, that did it. Thank you! I originally tried that after seeing it in the arrow code base, but I got different errors. That may have been before I figured out the correct #include. Now I need to understand the difference in syntax. Why does this init syntax work whereas ` auto buf_reader = arrow::io::BufferReader(buffer);` doesn't? I think this is a C++ question rather than an arrow question.
Thanks, Xander On Mon, Apr 19, 2021 at 1:17 AM, Antoine Pitrou < [email protected] > wrote: > > > > On Mon , 19 Apr 2021 07:27:45 +0000 > "Xander Dunn" < xander@ xander. ai ( [email protected] ) > wrote: > > >> >> >> I'm stuck on creating the BufferReader. I believe it's declared in >> arrow/io/memory.h, so I include that with `#include <arrow/io/memory.h>` >> and get these compile errors in clang: >> >> >> >> ``` >> >> >> >> pymydata/ pymydata/ PreprocessData. cc:312:18 ( >> http://pymydata/pymydata/PreprocessData.cc:312:18 ) ( http:/ / pymydata/ >> pymydata/ >> PreprocessData. cc:312:18 ( >> http://pymydata/pymydata/PreprocessData.cc:312:18 ) ) : error: call to >> implicitly-deleted copy constructor of 'arrow::io::BufferReader' >> >> >> >> auto buf_reader = arrow::io::BufferReader(buffer); >> >> > > > > How about > > > > arrow::io::BufferReader buf_reader(buffer); > > > > ? > > >
