aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/include/base.hpp')
-rw-r--r--c_compiler/include/base.hpp5
1 files changed, 1 insertions, 4 deletions
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() {