diff --git a/CHANGELOG.md b/CHANGELOG.md index 0927c125..72436494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Version 243: * Fix some typos * Tidy up file_stdio for VS2015 +* Fix http::message constructor constraint -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/message.hpp b/include/boost/beast/http/message.hpp index f02a38b0..c21e3685 100644 --- a/include/boost/beast/http/message.hpp +++ b/include/boost/beast/http/message.hpp @@ -299,9 +299,11 @@ public: template::type, status>::value && + std::decay::type, header>::value && ! std::is_convertible::type, header>::value + std::decay::type, verb>::value && + ! std::is_convertible::type, status>::value >::type> explicit header(Arg1&& arg1, ArgN&&... argn);