title: How to address possible loss of data warning when transfering data between containers?
body: <p>I'm trying to transfer data from one container to another:</p>
  
  <pre><code>#include &lt;vector&gt;
  int main()
  {
      std::vector&lt;int&gt;   input_data;
      std::vector&lt;float&gt; output_data;
  
      output_data.insert(output_data.end(), input_data.begin(), input_data.end());
  }
  </code></pre>
  
  <p>In VS2005, I get three C4244 warning in base.hpp saying "conversion from 'const int' to 'const float', possible loss of data."</p>
  
  <p>Now I understand the warning, and it's a legitimate one. However in my particular case the loss of data is negligible. Is there any way to acknowledge the warning without having to do a loop like this?</p>
  
  <pre><code>for (std::vector&lt;int&gt;::const_iterator it; it != input_data.end(); ++it)
  {
      output_data.push_back(static_cast&lt;float32&gt;(*it));
  }
  </code></pre>