Skip to content

Compile AsyncLogging_test.cc error under gcc-7.3.0 ubuntu 14.04 #20

@tonychen007

Description

@tonychen007

ubuntu 14.04 : kernel 4.4
gcc ver: 7.3.0
boost ver : 1.58

/usr/include/boost/ptr_container/detail/static_move_ptr.hpp:168:57: error: no type named ‘error’ in ‘class boost::ptr_container_detail::static_move_ptr<muduo::detail::FixedBuffer<4000000>, boost::ptr_container_detail::clone_deleter<boost::ptr_container_detail::reversible_ptr_container<boost::ptr_container_detail::sequence_config<muduo::detail::FixedBuffer<4000000>, std::vector<void*, std::allocator<void*> > >, boost::heap_clone_allocator>::null_clone_allocator<false> > >’ typedef typename static_move_ptr<TT, DD>::error type;

To explicitly disable copy ctor and copy assign func of class AsyncLoggingDoubleBuffering can resolve this issue. But why it needs such behavior given the class has already privatly inherited from boost::noncopyable?

Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions