Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-02-04 08:37:19

Joel de Guzman wrote:
> ----- Original Message -----
> From: "Vladimir Prus" <ghost_at_[hidden]>
>>Joel de Guzman wrote:
>>>Borland cannot handle this code:
>>>#include <boost/type_traits.hpp>
>>>#include <boost/mpl/if.hpp>
>>>using namespace boost;
>>>using namespace boost::mpl;
>>>struct A {};
>>>struct B {};
>>>template <typename T>
>>>struct C : if_<is_empty<T>, A, B>::type {};

>>Just tried. Works pretty fine. My CVS tree might be a week old, or so.
>>Also, maybe 'if_c<::boost::is_empty<T>::value, A, B>' will work. Did
>>the same with 'is_same' recently.
> I just updated from CVS before posting this to be sure.
> Borland 5.5.1,
> bcc32 -O1 -w-inl -w-aus -q -P

Yes, this fails for me too, *after update*. I meant to say that ~ week's
old CVS was ok. Guess you'll have to do binary search in time to
find out who and when broke this.

- Volodya

Boost list run by bdawes at, gregod at, cpdaniel at, john at