title: Base64 encode using boost throw exception
body: <p>I trying to use boost base64 encoder, I found an example but I got and exception</p>
  
  <pre><code>typedef 
  transform_width&lt; binary_from_base64&lt;std::string::const_iterator&gt;, 8, 6 &gt; it_binary_t
  </code></pre>
  
  <p>an I used </p>
  
  <pre><code>std::string b64E(it_binary_t(Encrip.begin()), it_binary_t(Encrip.end()));
  </code></pre>
  
  <p>I get it </p>
  
  <blockquote>
    <p>Unhandled exception at 0x75b1b9bc in agentid_coder.exe: Microsoft C++
    exception: boost::archive::iterators::dataflow_exception at memory
    location 0x0046ed94..</p>
  </blockquote>
  
  <p>I found this workaround but I get the same result</p>
  
  <pre><code> string dec( 
          it_binary_t(Encrip.begin()), 
          it_binary_t(Encrip.begin() + Encrip.length() - 1) 
          ); 
  </code></pre>
  
  <p>I am using MSVS2008 and boost 1.38</p>