wsjcpp/wsjcpp-yaml

Remove dangerous operators

sea-kg opened this issue · 0 comments

WsjcppYamlItem &operator[](int idx) { return *(this->getElement(idx)); }
WsjcppYamlItem &operator[](const std::string &sName) { return *(this->getElement(sName)); }

Dangerous because if user keep static object so then it will be destruct.

Redesign to WsjcppYamlCursor algorithm;