You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
are not intended to modify the object. Thus they should also be tagged as const in c++. Otherwise when handling const objects, these functions are not available. Actually one can not restrict objects as const.
Note: ParseTreeType ParseTree::getTreeType() const is already const
The text was updated successfully, but these errors were encountered:
Some functions of class
ParseTree
, e. g.std::string ParseTree::toStringTree(…)
std::string ParseTree::toString()
std::string ParseTree::getText()
are not intended to modify the object. Thus they should also be tagged as
const
in c++. Otherwise when handling const objects, these functions are not available. Actually one can not restrict objects asconst
.Note:
ParseTreeType ParseTree::getTreeType() const
is alreadyconst
The text was updated successfully, but these errors were encountered: