From f619a54d6711e59e50b684df98676f0d065a41d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Ber=C3=A1nek?= Date: Thu, 5 Oct 2017 19:24:57 +0200 Subject: [PATCH] Flip the order of _msg and _sent in zmq::frame As stated in zmq.h, the zmq_msg_t structure must be aligned on the address boundary if sigbus violations are to be avoided on architectures enforcing the pointer alignment. --- src/zmqpp/frame.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zmqpp/frame.hpp b/src/zmqpp/frame.hpp index 9b576f18..ad41d7a6 100644 --- a/src/zmqpp/frame.hpp +++ b/src/zmqpp/frame.hpp @@ -54,9 +54,9 @@ class ZMQPP_EXPORT frame frame copy() const; private: - bool _sent; zmq_msg_t _msg; - + bool _sent; + // Disable implicit copy support, code must request a copy to clone frame(frame const&) NOEXCEPT ZMQPP_EXPLICITLY_DELETED; frame& operator=(frame const&) NOEXCEPT ZMQPP_EXPLICITLY_DELETED;