mirror of
https://github.com/Zygo/bees.git
synced 2025-06-15 17:26:15 +02:00
test: fd: note when bad cast exception is expected
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
@ -302,6 +302,7 @@ cast(const Fd &fd)
|
||||
{
|
||||
auto dp = dynamic_pointer_cast<T>(fd.operator->());
|
||||
if (!dp) {
|
||||
cerr << "expect bad cast exception: " << flush;
|
||||
throw bad_cast();
|
||||
}
|
||||
return dp;
|
||||
|
Reference in New Issue
Block a user