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
|
||||
template <typename T>
|
||||
T* cast(ast::expression* expr) {
|
||||
return cast_impl<T, ast::expression>(expr);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T* cast(ast::statement* stmt) {
|
||||
return cast_impl<T, ast::statement>(stmt);
|
||||
T* cast(ast::node* stmt) {
|
||||
return cast_impl<T, ast::node>(stmt);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user