title: xutility(2227): warning C4996: 'std::_Copy_impl'
body: <p>I got this warning message.. but i dont know what/where the problem is..!</p>
  
  <p>includes</p>
  
  <pre><code>#pragma warning(push)
  #pragma warning(disable:4996) 
  #include &lt;boost/archive/iterators/base64_from_binary.hpp&gt;
  #include &lt;boost/archive/iterators/insert_linebreaks.hpp&gt;
  #include &lt;boost/archive/iterators/transform_width.hpp&gt;
  #include &lt;boost/archive/iterators/ostream_iterator.hpp&gt;
  #pragma warning(pop)
  </code></pre>
  
  <p>and the warning</p>
  
  <pre><code>1&gt;c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2227): warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
  1&gt;          c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2212): Siehe Deklaration von 'std::_Copy_impl'
  1&gt;          c:\users\perlig\documents\visual studio 2010\projects\restmanager\restmanager\**http.cpp(257)**: Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-template "_OutIt std::copy&lt;boost::archive::iterators::insert_linebreaks&lt;Base,N&gt;,boost::archive::iterators::ostream_iterator&lt;Elem&gt;&gt;(_InIt,_InIt,_OutIt)".
  1&gt;          with
  1&gt;          [
  1&gt;              _OutIt=boost::archive::iterators::ostream_iterator&lt;char&gt;,
  1&gt;              Base=boost::archive::iterators::base64_from_binary&lt;boost::archive::iterators::transform_width&lt;const char *,6,8&gt;&gt;,
  1&gt;              N=76,
  1&gt;              Elem=char,
  1&gt;                _InIt=boost::archive::iterators::insert_linebreaks&lt;boost::archive::iterators::base64_from_binary&lt;boost::archive::iterators::transform_width&lt;const char *,6,8&gt;&gt;,76&gt;
  1&gt;          ]
  </code></pre>
  
  <p>the code occur in line 257 as the warning message says. but i´m not able to fix it because i not know what is wrong.. </p>
  
  <p>string data contains a "user:password" string for basic auth via http.</p>
  
  <p>http.cpp(257):</p>
  
  <pre><code>// typdef, prepare
  using namespace boost::archive::iterators;
  stringstream os;
  typedef 
      insert_linebreaks&lt;         // insert line breaks every 72 characters
          base64_from_binary&lt;    // convert binary values ot base64 characters
              transform_width&lt;   // retrieve 6 bit integers from a sequence of 8 bit bytes
                  const char *,
                  6,
                  8
              &gt;
          &gt; 
          ,76
      &gt; 
      base64_text; // compose all the above operations in to a new iterator
  
  // encrypt
  #pragma warning(push)
  #pragma warning(disable:4996)
  copy( //&lt;&lt;&lt;&lt;&lt;------ LINE 257
      base64_text(data.c_str()),
      base64_text(data.c_str() + data.size()),
      boost::archive::iterators::ostream_iterator&lt;char&gt;(os)
  );
  #pragma warning(pop)
  </code></pre>
  
  <p>anybody got any idea?</p>