From 027c544a3a2092ad3cb73efa6ddb8ad28789db32 Mon Sep 17 00:00:00 2001 From: Klemens Date: Tue, 20 Dec 2022 15:08:40 +0800 Subject: [PATCH] test::handler copies the source location. --- include/boost/beast/_experimental/test/handler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/beast/_experimental/test/handler.hpp b/include/boost/beast/_experimental/test/handler.hpp index e118c09c..09bf09ce 100644 --- a/include/boost/beast/_experimental/test/handler.hpp +++ b/include/boost/beast/_experimental/test/handler.hpp @@ -50,10 +50,10 @@ public: { } - handler(handler&& other,boost::source_location loc = BOOST_CURRENT_LOCATION) + handler(handler&& other) : ec_(other.ec_) , pass_(boost::exchange(other.pass_, true)) - , loc_(loc) + , loc_(other.loc_) { }