Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-01-28 09:11:24

----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>

> Dave, I meant to get back to you on the static-assertion problem you had -
> basically I tried all sorts of things, and with VC6
> std::numeric_limits<T>::is_integer seems to always evaluate to false at
> compile time: the following also fails:
> template <class T>
> struct int_check1
> {
> typedef int (&type)[std::numeric_limits<T>::is_specialized ? 1 :
> -1];
> };
> int_check1<int> ic1;
> Strangely the problem seems to be unique to numeric_limits - the boost
> type_traits classes always seem to give the right answer when fed into
> static assertions. At the moment I have no idea what's going on.


This doesn't correspond with my recent experience. If what you are saying
were true, counting_iterator_test.cpp would always fail for plain VC6.


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