This is an automated email from the ASF dual-hosted git repository. scw00 pushed a commit to branch quic-latest in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push: new c90703c fix the compiler error with gcc 4.9 c90703c is described below commit c90703cc4c3be3c5b7790265cd09c584c30b1be0 Author: scw00 <sc...@apache.org> AuthorDate: Fri Sep 1 09:49:23 2017 +0800 fix the compiler error with gcc 4.9 --- iocore/net/quic/QUICFrame.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iocore/net/quic/QUICFrame.h b/iocore/net/quic/QUICFrame.h index 8feb175..11fcf03 100644 --- a/iocore/net/quic/QUICFrame.h +++ b/iocore/net/quic/QUICFrame.h @@ -429,6 +429,7 @@ private: }; using QUICFrameDeleterFunc = void (*)(QUICFrame *p); +using QUICFramePtr = std::unique_ptr<QUICFrame, QUICFrameDeleterFunc>; // // Retransmission Frame @@ -444,7 +445,7 @@ public: QUICPacketType packet_type() const; private: - std::unique_ptr<QUICFrame, QUICFrameDeleterFunc> _frame = std::unique_ptr<QUICFrame, QUICFrameDeleterFunc>(nullptr, nullptr); + std::unique_ptr<QUICFrame, QUICFrameDeleterFunc> _frame = QUICFramePtr(nullptr, nullptr); ats_unique_buf _data = ats_unique_buf(nullptr, [](void *p) { ats_free(p); }); size_t _size; QUICPacketType _packet_type; -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].