Make Type an enum class (C++11 ftw)

This commit is contained in:
Markus Hauschild
2013-06-01 16:22:01 +02:00
parent 4d805b34db
commit 6d2e40778c
10 changed files with 38 additions and 21 deletions

View File

@@ -9,15 +9,15 @@
class VariableDefinition : public Statement
{
public:
VariableDefinition(Type *type, std::string name);
VariableDefinition(Type type, std::string name);
virtual ~VariableDefinition();
virtual void accept(ASTVisitor* visitor);
Type* getType();
Type getType();
std::string getName();
private:
Type* type_;
Type type_;
std::string name_;
};