From 8c24b443d99fcb8b65ee0a12e61817fedb8b11db Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sun, 13 Aug 2023 20:39:57 +0200 Subject: [PATCH] Allow block_compressor default construction --- include/dwarfs/block_compressor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dwarfs/block_compressor.h b/include/dwarfs/block_compressor.h index c3a8ab7e..0d94f117 100644 --- a/include/dwarfs/block_compressor.h +++ b/include/dwarfs/block_compressor.h @@ -47,7 +47,9 @@ class bad_compression_ratio_error : public std::runtime_error { class block_compressor { public: - block_compressor(const std::string& spec); + block_compressor() = default; + + explicit block_compressor(const std::string& spec); block_compressor(const block_compressor& bc) : impl_(bc.impl_->clone()) {}