Compile AsyncLogging_test.cc error under gcc-7.3.0 ubuntu 14.04
Opened this issue · 2 comments
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.
这个问题解决没
the same porblem