RE: [boost] Re: [MPL] Making Generators

2002-12-07 Thread Aleksey Gurtovoy
David Abrahams wrote: MPL's implementation (boost/mpl/aux_/has_xxx.hpp) is known to work on Comeau, Intel (all versions), MSVC (all versions), Metroweks 8.3/8.2 and GCC 3.2. There is no known way to make it work on Borland. You can test it against any other compiler by trying out

Re: [boost] Re: [MPL] Making Generators

2002-12-07 Thread David Abrahams
Aleksey Gurtovoy [EMAIL PROTECTED] writes: David Abrahams wrote: MPL's implementation (boost/mpl/aux_/has_xxx.hpp) is known to work on Comeau, Intel (all versions), MSVC (all versions), Metroweks 8.3/8.2 and GCC 3.2. There is no known way to make it work on Borland. You can test it

RE: [boost] Re: [MPL] Making Generators

2002-12-06 Thread Aleksey Gurtovoy
David B. Held wrote: In C++ Templates: The Complete Guide (Recommended), they give this example on pages 106-107: typedef char RT1; typedef struct {char a[2];} RT2; templatetypename T RT1 test(typename T::X const*); templatetypename T RT2 test(...); #define

Re: [boost] Re: [MPL] Making Generators

2002-12-06 Thread David Abrahams
Aleksey Gurtovoy [EMAIL PROTECTED] writes: David B. Held wrote: In C++ Templates: The Complete Guide (Recommended), they give this example on pages 106-107: typedef char RT1; typedef struct {char a[2];} RT2; templatetypename T RT1 test(typename T::X const*); templatetypename T

[boost] Re: [MPL] Making Generators

2002-12-05 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] I don't know... well, it could detect whether there was a ::type member, [...] Really??? Is it possible to detect the presence of a typedef without generating an error? How do you do this?

RE: [boost] Re: [MPL] Making Generators

2002-12-05 Thread Jon Kalb
-Original Message- From: David B. Held [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: [boost] Re: [MPL] Making Generators David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL P

Re: [boost] Re: [MPL] Making Generators

2002-12-05 Thread Paul Mensonides
- Original Message - From: David B. Held [EMAIL PROTECTED] Jon Kalb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] icrosoft.com... [...] Vandevoorde and Josuttis call it SFINAE, substitution failute is not an error. Ah, I've heard of this, but didn't realize what it