aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/base.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-03 16:24:07 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-03 16:24:07 +0000
commit522cc9d286c5d35ca25ebaa85374f5f9214a7f6e (patch)
treee4c944cce2fcd736834e35d8e5d06f984b57a976 /c_compiler/include/base.hpp
parent446c2394ec8970198d645bbbb462c67b9e3f1b1e (diff)
downloadCompiler-522cc9d286c5d35ca25ebaa85374f5f9214a7f6e.tar.gz
Compiler-522cc9d286c5d35ca25ebaa85374f5f9214a7f6e.zip
Still working on ast
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() {