Insensus 52 Junior Poster
Insensus 52 Junior Poster

Is reversing the vector an option?
I guess this should work:

reverse(foo.begin(), foo.end());
long some_long = *(long *)&foo[0];