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