On 16/01/2014 17:08, Quoth Kenneth Adam Miller:Why would you? Unless you can guarantee that you're always going to get a multiple of 8 bytes after compression, that seems like asking for trouble.
Also, supposing I go with something like vector<int64_t> or something,
Your ostream is templated on char, therefore it produces chars. You can't just insert a char into a vector of int64s.
how do I create a device to make the filtering stream complete? I had:
fos->push(boost::iostreams::back_insert_device<string>(*x));
now I need to do:
fos->push(boost::iostreams::back_insert_device<vector<int64_t>>(*x));
but it complains with "error: no matching function for call to"
construct it, and then says that it wants one of a ton of different
valid things, but it template expands all of them so it's a bunch of text...
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users