forked from boostorg/beast
Add non-allocating overload for error category message function
Fixes #2646
This commit is contained in:
committed by
Mohammad Nejati
parent
5998feda44
commit
9e16754dd5
@@ -34,12 +34,14 @@ public:
|
||||
BEAST_EXPECT(ec.category().name() != nullptr);
|
||||
BEAST_EXPECT(! ec.message().empty());
|
||||
BEAST_EXPECT(ec == c);
|
||||
BEAST_EXPECT(ec.message(nullptr, 0) != nullptr);
|
||||
}
|
||||
{
|
||||
auto ec = make_error_condition(c);
|
||||
BEAST_EXPECT(ec.category().name() != nullptr);
|
||||
BEAST_EXPECT(! ec.message().empty());
|
||||
BEAST_EXPECT(ec == c);
|
||||
BEAST_EXPECT(ec.message(nullptr, 0) != nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user