You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Jihoon Son (JIRA)" <ji...@apache.org> on 2016/08/02 22:58:20 UTC

[jira] [Created] (ARROW-247) [C++] Missing explicit destructor in RowBatchReader causes an incomplete type error

Jihoon Son created ARROW-247:
--------------------------------

             Summary: [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


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
(v6.3.4#6332)