[type traits] is_virtual_base_of causes C4250 (class inherits member via dominance) with VS 2005

Hi! I didn't find any references to this, so I thought I'd let you know that boost::is_virtual_base_of<Base, Derived> will cause (harmless) C4250 when evaluating to true. (VC++ 2005) I hit this when using the BOOST_CLASS_EXPORT macro from Boost.Serialization, as this uses is_virtual_base_of internally. cheers, Martin ps: For code see: http://stackoverflow.com/q/4091166/321013

I didn't find any references to this, so I thought I'd let you know that boost::is_virtual_base_of<Base, Derived> will cause (harmless) C4250 when evaluating to true. (VC++ 2005)
Fixed in https://svn.boost.org/trac/boost/changeset/66404. Please let us know if you find any other inheritance related warnings in that class! Cheers, John.

On 05.11.2010 10:52, John Maddock wrote:
I didn't find any references to this, so I thought I'd let you know that boost::is_virtual_base_of<Base, Derived> will cause (harmless) C4250 when evaluating to true. (VC++ 2005)
Fixed in https://svn.boost.org/trac/boost/changeset/66404.
Please let us know if you find any other inheritance related warnings in that class!
Nice! I won't find any more since I only hit this warning when upgrading some code using Boost.Serialization from 1.34.1 to 1.44 and that was the only warning I got here. cheers, Martin
participants (3)
-
John Maddock
-
Martin B.
-
Martin T.