Closed kabasset closed 1 year ago
CompressionAction::algo(Initializer<T>) -> std::unique_ptr<Compression>; // nullptr instead of false template <typename T> Strategy::compress(fitsfile* fptr, const ImageHdu::Initializer<T>& init) { for (const auto& c : m_compression) { if (auto algo = c->algo(init); algo) { algo->compress(fptr); return true; } } NoCompression().compress(fptr); return false; }