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

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

delphi xe7 upload/download dropbox file using the rest client and show progress -

java - Get more than One value and display it -