#include #include #include #include #include #include #include #include #include #include using namespace boost::algorithm; using namespace boost::iostreams; using namespace std; int main() { string str("a,b"); vector strVec; split(strVec, str, is_any_of(",")); assert(strVec.size()==2); assert(strVec[0]=="a"); assert(strVec[1]=="b"); // Test boost::iostreams::zstd_compressor() linking std::vector v; back_insert_device> snk{v}; filtering_ostream os; os.push(zstd_compressor()); os.push(snk); os << "Boost" << std::flush; os.pop(); array_source src{v.data(), v.size()}; filtering_istream is; is.push(zstd_decompressor()); is.push(src); std::string s; is >> s; assert(s == "Boost"); return 0; }