Add non-allocating overload for error category message function

Fixes #2646
This commit is contained in:
Mohammad Nejati
2024-01-03 18:21:52 +03:30
committed by Mohammad Nejati
parent 5998feda44
commit 9e16754dd5
9 changed files with 72 additions and 17 deletions
+3
View File
@@ -35,6 +35,9 @@ public:
BEAST_EXPECT(ec.category().name() != nullptr);
BEAST_EXPECT(! ec.message().empty());
BEAST_EXPECT(ec == c);
BEAST_EXPECT(ec.message(nullptr, 0) != nullptr);
BEAST_EXPECT(make_error_condition(c).message(nullptr, 0) != nullptr);
}
void run() override