]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation when zlib is not available. 9371/head
authorLuca Heltai <luca.heltai@sissa.it>
Fri, 17 Jan 2020 22:26:12 +0000 (23:26 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Fri, 17 Jan 2020 22:26:12 +0000 (23:26 +0100)
include/deal.II/base/utilities.h
source/base/utilities.cc

index 18e267d901154b42ac560dabcde640d0f819983a..bb7563562953bc3e9fdaf7bd6f2c686213ed004c 100644 (file)
@@ -145,16 +145,13 @@ namespace Utilities
    * is identical to the input string.
    *
    * @param[in] input The string to compress
-   * @param[in] compression_level The compression level at which we compress
    *
    * @return A compressed version of the input string
    *
    * @authors Luca Heltai, Nicola Giuliani, 2020
    */
   std::string
-  compress(
-    const std::string &input,
-    const int compression_level = boost::iostreams::gzip::default_compression);
+  compress(const std::string &input);
 
   /**
    * If the library is configured with ZLIB, then this function assumes that the
index f38c36d5a39f20d3432620eb2cbcf7624b2b1faa..af0f9120c6939bd7285b211c8af5341627e2dabc 100644 (file)
@@ -381,7 +381,7 @@ namespace Utilities
 
 
   std::string
-  compress(const std::string &input, const int compression_level)
+  compress(const std::string &input)
   {
 #ifdef DEAL_II_WITH_ZLIB
     namespace bio = boost::iostreams;
@@ -390,7 +390,8 @@ namespace Utilities
     std::stringstream origin(input);
 
     bio::filtering_streambuf<bio::input> out;
-    out.push(bio::gzip_compressor(bio::gzip_params(compression_level)));
+    out.push(bio::gzip_compressor(
+      bio::gzip_params(boost::iostreams::gzip::default_compression)));
     out.push(origin);
     bio::copy(out, compressed);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.