ret will be dangerous pointer. Please use `std::string ret` instead.