diff --git a/Nodes.hpp b/Nodes.hpp index 3d177de..ec62ef0 100644 --- a/Nodes.hpp +++ b/Nodes.hpp @@ -85,6 +85,9 @@ public: explicit Id(char const* c) { value = Pointer(new std::string(c)); } + explicit Id(std::string const& c) { + value = Pointer(new std::string(c)); + } virtual bool emit(Emitter *emitter) const { return emitter->emit(*this);