Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-01-21 16:16:13


And another thing: it seems to fail inside templates on MSVC:

# include <limits>
template <class T> struct int_check
{
    BOOST_STATIC_ASSERT(std::numeric_limits<T>::is_integer);
};
typedef int_check<int> check; // causes the assertion to fire

-Dave

----- Original Message -----
From: "David Abrahams" <abrahams_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, January 21, 2001 3:33 PM
Subject: BOOST_STATIC_ASSERT under MSVC

> It appears there's something amiss with this combination: the __LINE__
part
> of the typedef name is left out for some reason I can't fathom.
>
> -Dave
>


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