Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Serialization warning
From: Sulakshan Vajipayajula (sulaxan_at_[hidden])
Date: 2010-05-07 08:22:53


Hello Robert,
Thanks for the response.
The warning is also seen with the latest 1.43 version of the Boost library also. I tried compiling with the g++ 3.4.6 and noticed the same warning. Is there a particular complier option required to disable this warning (or perhaps resolve)?
 
Thanks
Sulakshan

________________________________

From: boost-users-bounces_at_[hidden] on behalf of Robert Ramey
Sent: Fri 5/7/2010 1:46 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Boost Serialization warning

Sulakshan Vajipayajula wrote:
> Hello,
> I am encountering the following warning when using virtual base
> class pointer to serialize a derived class. The same warning is
> displayed for all sample test programs that come with the
> serialization library. The compiler used is g++ version 3.4.3.
>
>
> /vob/adc/router/thirdparty/boost/boost/type_traits/is_virtual_base_of.hpp:56:
> warning: direct base `TestBase' inaccessible in
> `boost::detail::is_virtual_base_of_impl<TestBase, TestType1,
> mpl_::bool_< true> >::X' due to ambiguity
>
> Can you recommend any workarounds...or if this has been addressed.
>
> Thanks
> Sulakshan V
 
One work around would be to upgrade you compiler to a more recent version.
The oldest version we have in out test matrix is gcc 3.4.6 and it's not
emitting any warnings. Also you might want to mention which version
of boost you're using.
 
Robert Ramey
 



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