Consistency of Element constness in Element containers
class ListElement : public Element {
std::vector<ElementPtr> l;
[...]
}
class MapElement : public Element {
std::map<std::string, ConstElementPtr> m;
[...]
}
Making these containers have the same constness for the underlying type would enable less friction in:
- Generic helper functions acting on both
- Generic high-level use of both
04fa0d3f changed ListElement to hold ElementPtr instead of ConstElementPtr.
Would you consider it?