Opened 17 years ago

Closed 17 years ago

#500 closed Bugs (Works For Me)

warning caused by size_t to unsigned int conversion on vc++8

Reported by: nobody Owned by: Robert Ramey
Milestone: Component: serialization
Version: None Severity:
Keywords: Cc:

Description

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

Change History (2)

comment:1 by Robert Ramey, 17 years ago

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

comment:2 by Robert Ramey, 17 years ago

Status: assignedclosed
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
Note: See TracTickets for help on using tickets.