Subject: Re: [boost] [type_traits][V1.41] is_base_of<void, void> gives different results for gcc and vc
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-11-20 08:34:49
> >>> I just realized that is_base_of<void, void> gives different
> >>> (inconsistent)
> >>> results at least for gcc 4.3.2 (which evaluates this to false) and
> >>> vc2005sp1
> >>> (evaluates to true, as earlier versions of boost did consistently,
> >>> This is truly a border case, but should expose consistent behavior
> >>> anyways.
> >> Hmm.. will investigate.
> Do you have a test case for this - I added an explicit test case for
> is_base_of<void, void> to the type_traits tests, and they're passing
> for me
> with both msvc-8/9 and gcc-4.x.
I just realized that I was using tr1::is_base_of for VC and
boost::is_base_of for gcc, so this is probably expected.
It's still annoying to get differences, but alas, that's not the problem of
Thanks and sorry for the noise!
Meet me at BoostCon
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk