We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3cf849 + 188f263 commit 3cf67f7Copy full SHA for 3cf67f7
src/util/expr_cast.h
@@ -74,7 +74,7 @@ auto expr_try_dynamic_cast(TExpr &base)
74
typename detail::expr_try_dynamic_cast_return_typet<T, TExpr>::type
75
returnt;
76
static_assert(
77
- std::is_same<typename std::decay<TExpr>::type, exprt>::value,
+ std::is_base_of<exprt, typename std::decay<TExpr>::type>::value,
78
"Tried to expr_try_dynamic_cast from something that wasn't an exprt");
79
80
std::is_base_of<exprt, T>::value,
0 commit comments