Программы на C++. Форум разработчиков
-
Anonymous
Gzip_compressor в boost, похоже, не сохраняет и не загружает сжатые потоки должным образом
Сообщение
Anonymous »
Код: Выделить всё
namespace io = boost::iostreams;
void saveCompressedData(const std::string& file_path, const std::vector& bid, const std::vector& ask, const std::vector& close_prices, const std::vector& tick_numbers) {
try {
// Create an output file stream and filtering stream
std::ofstream file(file_path, std::ios_base::out | std::ios_base::binary);
if (!file) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79127103/gzip-compressor-in-boost-does-not-seem-to-save-and-load-compressed-streams-prope[/url]
1729884763
Anonymous
[code]namespace io = boost::iostreams;
void saveCompressedData(const std::string& file_path, const std::vector& bid, const std::vector& ask, const std::vector& close_prices, const std::vector& tick_numbers) {
try {
// Create an output file stream and filtering stream
std::ofstream file(file_path, std::ios_base::out | std::ios_base::binary);
if (!file) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79127103/gzip-compressor-in-boost-does-not-seem-to-save-and-load-compressed-streams-prope[/url]