c++ - Vector<Custom> Access Violation -
i submitted final project ended working, not way hoping. basically, created custom class book loaded vector<book>. book has function deserialize() call like:
book tempbook; tempbook.setserialized(stringbook); tempbook.deserialize(); but if tried call:
std::vector<book> book_vec; book tempbook; tempbook.setserialized(stringbook); book_vec.push_back(tempbook); book_vec.front().deserialize(); i access violation error (assume book_vec has 1 item)
setserialized puts flat string representation of book tempbook
deserialize tokenizes flat string, , loads tokens vectors of strings
why can't call deserialize book_vec???????
Comments
Post a Comment