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?

-Dave

----- 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
>
>
http://groups.google.com/groups?selm=000001c1cc83%24e154d5e0%247772e50c%
40c1
> 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
only
> when T has a nested type named key_type.
>
> --
> Peter Dimov
> Multi Media Ltd.
>
>
> Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>


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