Boost C++ Libraries: Ticket #500: warning caused by size_t to unsigned int conversion on vc++8 https://svn.boost.org/trac10/ticket/500 <pre class="wiki">This is in collections_save_imp.hpp, line 36: unsigned int count = s.size(); I get a warning under vc++8: c:\boost\include\boost-1_33\boost\serialization\collections_save_imp.hpp(36) : warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data I don't know if this is a foolish warning or not, or if changing to size_t would be detrimental to other platforms, but I thought I'd point it out just in case. bhiggins@gmail.com </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/500 Trac 1.4.3 Robert Ramey Wed, 09 Nov 2005 21:19:12 GMT <link>https://svn.boost.org/trac10/ticket/500#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/500#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 its innocuous We may in the future make some changes one of the effects will be to eliminate this warning. Currenlty, the serialization library is limited to saving 2 giga stl objects. This warning is a reflaction of the fact that some 64 bit machines might be able to have more than that in memory. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Thu, 01 Dec 2005 23:49:18 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/500#comment:2 https://svn.boost.org/trac10/ticket/500#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=396141 THe warning can be ignored unless you plan to serialize a collection with more thatn 4G elements. currently number of elements is in a collection to be serialized is limited to to 4 G. This will be relaxed in a future release. Robert Ramey </pre> Ticket