Fix -Wdangling-reference warnings

This commit is contained in:
Mohammad Nejati authored and Mohammad Nejati committed 2024-06-01 18:54:19 +03:30
1 parent b502789d89
commit eaaeb8b36b
3 files changed
+8 -7

No files matched your search

+3 -2
View File
@@ -24,8 +24,9 @@ public:
check(char const* name, error ev)
{
auto const ec = make_error_code(ev);
auto const& cat = make_error_code(
static_cast<http::error>(0)).category();
auto const ec_http = make_error_code(
static_cast<http::error>(0));
auto const& cat = ec_http.category();
BEAST_EXPECT(std::string(ec.category().name()) == name);
BEAST_EXPECT(! ec.message().empty());
BEAST_EXPECT(