Is `const std::string& Serialize() const;` satisfy your code? If yes, please redefine.