diff --git a/Makefile b/Makefile index 3bb8848..102b29b 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,8 @@ bison2: patch2 default unpatch2 compile: bison Monicelli.ypp flex Monicelli.lpp - -Wall -Wno-deprecated-register -std=c++11 -DYYDEBUG=0 -O2 \ $(CXX) \ + -Wall -Wno-deprecated-register -std=c++0x -DYYDEBUG=0 -O2 \ Parser.cpp lex.yy.cc Nodes.cpp main.cpp -o mcc patch2: diff --git a/Nodes.hpp b/Nodes.hpp index 546a68e..572fa54 100644 --- a/Nodes.hpp +++ b/Nodes.hpp @@ -39,7 +39,10 @@ std::ostream& operator<<(std::ostream &stream, const Type &type); template -using Pointer = std::unique_ptr; +class Pointer: public std::unique_ptr { +public: + Pointer(T *p = nullptr): std::unique_ptr(p) {} +}; class Emittable {