Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2005-04-26 04:45:15


>> Can any experts in MWCW take a look at why
>> libs/type_traits/extent_test.cpp fails all the tests? The implementation
>> of the extent type trait is pretty simple, and Metrowerks is the only
>> compiler that doesn't like it for some reason.
>
> It doesn't differentiate between these two types of PTS structs...
>
> template <class T, std::size_t R>
> struct extent_imp<T[R],0>
> {
> BOOST_STATIC_CONSTANT(std::size_t, value = R);
> };
> template <class T>
> struct extent_imp<T[], 0>
> {
> BOOST_STATIC_CONSTANT(std::size_t, value = 0);
> };
>
> And it picks the second all the time for int[n][m] and int[][].
>
> Don't know what can be done about it though. Other than adding __MWERKS__
> to the guard that's there already...

> Which makes the tests pass. I've checked this in as it can only hurt
> CodeWarrior :-)

Thanks Rene!

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk