Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-20 01:57:20

Amazing coincidence!
These are the same techniques I was using to implement my new
is_array/is_reference checks for MSVC.
However, I wasn't clear how close to the edge of legality I might have
been dancing. I wonder if this gives Howard his general "tell me if this
construct compiles or not" compile-time check?


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: "Boost List" <boost_at_[hidden]>
Sent: Monday, March 18, 2002 8:20 AM
Subject: [boost] is_class

> This post
> 61550a
> contains a clever is_class<> implementation based on the fact that
void T::*
> is only valid when T is a class.
> The thread contains another gem, has_key_type<T>::value which is true
> when T has a nested type named key_type.
> --
> Peter Dimov
> Multi Media Ltd.
> Info: Send unsubscribe requests to:
> Your use of Yahoo! Groups is subject to

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