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