Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-06-14 10:26:56


This compiler version is the only one that gives this warning. I've tried
to address it. I don't know if its a real problem or what. Anyone who can
figure this out can let me know what to do about it. I am sure its
harmless. In the meantime you could disable the warning with a command line
switch.

Robert Ramey

Ken Roser wrote:
> When compiling demo.cpp I get the warnings:
>
>
/home/test/boost/include/boost-1_32/boost/archive/detail/common_iarchive.hpp
:
>
> In
> member function `void
> boost::archive::detail::common_iarchive<Archive>::init() [with
> Archive = boost::archive::text_iarchive]':
> /home/test/boost/include/boost-1_32/boost/archive/text_iarchive.hpp:69:
> instantiated from
>
`boost::archive::text_iarchive_impl<Archive>::text_iarchive_impl(std::istrea
m&,
>
> unsigned int) [with Archive = boost::archive::text_iarchive]'
> /home/test/boost/include/boost-1_32/boost/archive/text_iarchive.hpp:82:
> instantiated from here
>
/home/test/boost/include/boost-1_32/boost/archive/detail/common_iarchive.hpp
:75:
>
> warning: choosing
> `boost::archive::version_type::operator unsigned int&()' over `
> boost::archive::version_type::operator unsigned int() const'
>
/home/test/boost/include/boost-1_32/boost/archive/detail/common_iarchive.hpp
:75:
>
> warning:
> for conversion from `boost::archive::version_type' to `unsigned
> int'
>
/home/test/boost/include/boost-1_32/boost/archive/detail/common_iarchive.hpp
:75:
>
> warning:
> because conversion sequence for the argument is better
>
> I'm using this compiler: g++ (GCC) 3.2.3 20030502 (Red Hat Linux
> 3.2.3-52)
>
> I'd like a way to silence these warnings assuming this isn't a problem
> on my system.
>
> I apologize if this was discussed previously, but I couldn't find any
> means to search the mailing list archive.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net