title: boost zlib problem
body: <p>I'm having a problem with the zlib libraries in boost under VS 2010. I built the libraries and the appropriate dlls/libs were generated in the boost/stage/lib folder. I added the .dlls into my programs debug folder and linked in the matching.lib. </p>
  
  <p>But I'm running into problems when I actually try to use the zlib streams. Heres an example:</p>
  
  <pre><code>#include &lt;cstring&gt;
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  #include &lt;boost\iostreams\filter\gzip.hpp&gt;
  #include &lt;boost\iostreams\filtering_streambuf.hpp&gt;
  #include &lt;boost\iostreams\copy.hpp&gt;
  std::string DecompressString(const std::string &amp;compressedString)
  {
      boost::iostreams::filtering_streambuf&lt;boost::iostreams::input&gt; in;
      in.push(boost::iostreams::zlib_decompressor());
      in.push(compressedString);
      std::string retString = "";
  
      copy(in, retString);
      return retString;
  }
  
  
  
  when I try to compile thise though, I get multiple errors including:
  error C2039: 'char_type' : is not a member of 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;'    c:\program files (x86)\boost\boost_1_46_0\boost\iostreams\traits.hpp
  error C2208: 'boost::type' : no members defined using this type c:\program files (x86)\boost\boost_1_46_0\boost\iostreams\traits.hpp
  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\boost\boost_1_46_0\boost\iostreams\traits.hpp
  </code></pre>
  
  <p>If I change my code to the following:</p>
  
  <pre><code>std::string DecompressString(const std::string &amp;compressedString)
  {
  
      boost::iostreams::filtering_streambuf&lt;boost::iostreams::input&gt; in;
      in.push(boost::iostreams::zlib_decompressor());
      std::string retString = "";
      return retString;
  
  }
  </code></pre>
  
  <p>It compiles, meaning the problem is with the in.push for compressedString and the copy to the retString. Am I doing something wrong? Am I not allowed to use strings like this?</p>
  
  <p>Thanks in advance</p>