exception cleanup error on gcc 6.3 with C++14
问题 I am trying to compile C++14 project of mine with gcc 6.3 and I am getting: hm3/pairblob.cc: In static member function 'static std::unique_ptr<hm3::PairBlob> hm3::PairBlob::create(const hm3::PairBlob*)': hm3/pairblob.cc:64:44: error: exception cleanup for this placement new selects non-placement operator delete [-fpermissive] std::unique_ptr<PairBlob> pair{ new(size) PairBlob }; ^~~~~~~~ In file included from /usr/include/c++/6.3.1/ext/new_allocator.h:33:0, from /usr/include/c++/6.3.1/armv7l