From 5032a20d9da66d851c48801cc70d3ebcc7d2773f Mon Sep 17 00:00:00 2001 From: Klemens Date: Wed, 21 Dec 2022 15:54:53 +0800 Subject: [PATCH] operator= is used to assign ecs without loc. --- include/boost/beast/core/detail/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/beast/core/detail/config.hpp b/include/boost/beast/core/detail/config.hpp index e182f919..8ec1c761 100644 --- a/include/boost/beast/core/detail/config.hpp +++ b/include/boost/beast/core/detail/config.hpp @@ -104,7 +104,7 @@ namespace net = boost::asio; #ifdef BOOST_BEAST_NO_SOURCE_LOCATION -#define BOOST_BEAST_ASSIGN_EC(ec, error) ec.assign(error) +#define BOOST_BEAST_ASSIGN_EC(ec, error) ec = error #else #define BOOST_BEAST_ASSIGN_EC(ec, error) \