[ https://issues.apache.org/jira/browse/ARROW-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17657281#comment-17657281 ]
Rok Mihevc commented on ARROW-247: ---------------------------------- This issue has been migrated to [issue #15589|https://github.com/apache/arrow/issues/15589] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [C++] Missing explicit destructor in RowBatchReader causes an incomplete type > error > ----------------------------------------------------------------------------------- > > Key: ARROW-247 > URL: https://issues.apache.org/jira/browse/ARROW-247 > Project: Apache Arrow > Issue Type: Bug > Components: C++ > Reporter: Jihoon Son > Assignee: Jihoon Son > Priority: Minor > Fix For: 0.1.0 > > > clang compiler emits the below error. > {noformat} > In file included from > ${ARROW_HOME}/include/arrow/ipc/adapter.h:25: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2514:27: > error: invalid application of 'sizeof' to an incomplete type > 'arrow::ipc::RowBatchReader::Impl' > static_assert(sizeof(_Tp) > 0, "default_delete can not delete > incomplete type"); > ^~~~~~~~~~~ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2715:13: > note: in instantiation of member function > 'std::__1::default_delete<arrow::ipc::RowBatchReader::Impl>::operator()' > requested here > __ptr_.second()(__tmp); > ^ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2683:46: > note: in instantiation of member function > 'std::__1::unique_ptr<arrow::ipc::RowBatchReader::Impl, > std::__1::default_delete<arrow::ipc::RowBatchReader::Impl> >::reset' > requested here > _LIBCPP_INLINE_VISIBILITY ~unique_ptr() {reset();} > ^ > /Users/jihoon/Projects/arrow/install//include/arrow/ipc/adapter.h:73:20: > note: in instantiation of member function > 'std::__1::unique_ptr<arrow::ipc::RowBatchReader::Impl, > std::__1::default_delete<arrow::ipc::RowBatchReader::Impl> >::~unique_ptr' > requested here > class ARROW_EXPORT RowBatchReader { > ^ > ${ARROW_HOME}/include/arrow/ipc/adapter.h:87:9: note: forward declaration of > 'arrow::ipc::RowBatchReader::Impl' > class Impl; > ^ > 1 error generated. > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)