From 6ef4afa765f2fe07099bcd5cbca21c57111c640b Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 9 Aug 2017 18:47:43 -0700 Subject: [PATCH] Fix pausation::save --- CHANGELOG.md | 4 ++++ include/boost/beast/websocket/detail/pausation.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a105604..98e6865e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ Version 104: * Tidy up some test warnings * tools/ renamed from build/ +WebSocket: + +* Fix pausation::save + -------------------------------------------------------------------------------- Version 103: diff --git a/include/boost/beast/websocket/detail/pausation.hpp b/include/boost/beast/websocket/detail/pausation.hpp index 24461452..8d73cdca 100644 --- a/include/boost/beast/websocket/detail/pausation.hpp +++ b/include/boost/beast/websocket/detail/pausation.hpp @@ -121,7 +121,7 @@ class pausation saved_op(Op&& op) { using boost::asio::asio_handler_allocate; - new(asio_handler_allocate(sizeof(Op), + op_ = new(asio_handler_allocate(sizeof(Op), std::addressof(op.handler()))) Op{ std::move(op)}; }