We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6daa8bd commit 188f263Copy full SHA for 188f263
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