mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Removed 'str' method from SemanticValue.
This commit is contained in:
parent
6c59c02ea9
commit
59cb3b5aea
7
peglib.h
7
peglib.h
@ -189,13 +189,6 @@ struct SemanticValues : protected std::vector<SemanticValue>
|
||||
|
||||
SemanticValues() : s(nullptr), n(0), choice(0) {}
|
||||
|
||||
std::string str(size_t i = 0) const {
|
||||
if (i > 0) {
|
||||
return (*this)[i].str();
|
||||
}
|
||||
return std::string(s, n);
|
||||
}
|
||||
|
||||
typedef SemanticValue T;
|
||||
using std::vector<T>::iterator;
|
||||
using std::vector<T>::const_iterator;
|
||||
|
Loading…
Reference in New Issue
Block a user