forgot that statement and expression had a common
ancestor
This commit is contained in:
@@ -41,13 +41,8 @@ namespace {
|
|||||||
|
|
||||||
// Overloads for your known base types
|
// Overloads for your known base types
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T* cast(ast::expression* expr) {
|
T* cast(ast::node* stmt) {
|
||||||
return cast_impl<T, ast::expression>(expr);
|
return cast_impl<T, ast::node>(stmt);
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
T* cast(ast::statement* stmt) {
|
|
||||||
return cast_impl<T, ast::statement>(stmt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Reference in New Issue
Block a user