Convenience ctor for Id from std::string.

This commit is contained in:
Stefano Sanfilippo 2015-03-10 00:48:28 +01:00
parent f35332cf89
commit ef0e1be751

View File

@ -85,6 +85,9 @@ public:
explicit Id(char const* c) {
value = Pointer<std::string>(new std::string(c));
}
explicit Id(std::string const& c) {
value = Pointer<std::string>(new std::string(c));
}
virtual bool emit(Emitter *emitter) const {
return emitter->emit(*this);