From 522cc9d286c5d35ca25ebaa85374f5f9214a7f6e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 3 Mar 2017 16:24:07 +0000 Subject: Still working on ast --- c_compiler/include/base.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'c_compiler/include/base.hpp') diff --git a/c_compiler/include/base.hpp b/c_compiler/include/base.hpp index ae7cfd7..eff825a 100644 --- a/c_compiler/include/base.hpp +++ b/c_compiler/include/base.hpp @@ -109,10 +109,7 @@ protected: const Base* type; public: - BasePrimitive(const std::string& _id) - : id(_id), type(new EmptyNode) {} - - BasePrimitive(const std::string& _id, const Base* _type) + BasePrimitive(const std::string& _id = "", const Base* _type = new EmptyNode) : id(_id), type(_type) {} virtual ~BasePrimitive() { -- cgit