Convenience ctor for Id from std::string.
This commit is contained in:
parent
f35332cf89
commit
ef0e1be751
|
@ -85,6 +85,9 @@ public:
|
||||||
explicit Id(char const* c) {
|
explicit Id(char const* c) {
|
||||||
value = Pointer<std::string>(new std::string(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 {
|
virtual bool emit(Emitter *emitter) const {
|
||||||
return emitter->emit(*this);
|
return emitter->emit(*this);
|
||||||
|
|
Reference in New Issue
Block a user