Boost Serialization warning

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.hp
p:56: warning: direct base `TestBase' inaccessible in
`boost::detail::is_virtual_base_of_impl

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
>::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

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@lists.boost.org on behalf of Robert Ramey Sent: Fri 5/7/2010 1:46 AM To: boost-users@lists.boost.org 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
>::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

Sulakshan Vajipayajula wrote:
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)?
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.
I'm not seeing any such warnings on my own maching (gcc 4.3.3) nor in the test matrix. a couple of things to check: a) check the switches that you use when you compile and compare them to the standard ones that bjam uses. b) check the tests in the "type_traits" library to see it such a warning is related to the module which the serialization library depends upon. Robert Ramey
participants (2)
-
Robert Ramey
-
Sulakshan Vajipayajula