Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.almeida_at_[hidden])
Date: 2005-01-16 08:42:46


I think that all that you need to make this warnings disappear is
disable the Detect 64-bit Portability Issues in the settings of the
C/C++ compiler in the project options...

Tobias Schwinger wrote:
> Hi,
>
> when using the Boost.Serialization library with MSVC8 I get flooded by
> (about thousand lines of) warning messages due to the fact that size_t
> has been widened (and there are just very few small classes in my
> project that use serialization).
>
> It's especially annoying because warnings about truncating conversions
> are quite useful, in general (I wouldn't want to disable them
> permanently, that is).
>
> Boost.Serialization:
>
> [ collections_save_impl.hpp:36 ] "possible loss of data converting...".
> unsigned int <var> = <size_t expression>
>
> [ detail/oserializer.hpp:479 ] "possible loss of data converting..".
> int <var> = <size_t expression>
>
> - I guess there are some more but these are the ones the compiler gets
> to see in my project (that's also why I didn't post a patch).
>
> Boost.TypeTraits (used by Boost.Serialization):
>
> [ is_abstract.hpp:81 ] BOOST_STATIC_ASSERT(sizeof(expression))"
> "forcing value to bool"
>
>
> Just in case it isn't on anyone's todo-list, yet...
>
>
> Greetings,
>
> Tobias
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
    Felipe Magno de Almeida
    UIN: 2113442
     email: felipe.almeida_at_ic unicamp br, felipe.m.almeida_at_gmail com
I am a C, modern C++, MFC, ODBC, Windows Services, MAPI developer
from synergy, and Computer Science student from State
University of Campinas(UNICAMP).
To know more about:
Unicamp: http://www.ic.unicamp.br
Synergy: http://www.synergy.com.br
current work: http://www.mintercept.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk