Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-22 22:52:25


"Paul Mensonides" <pmenso57_at_[hidden]> wrote in message
news:002001c1ea70$f5494120$7772e50c_at_c161550a...
> I posted this at comp.std.c++, but I don't think it went
through--I'm not trying
> to 'cross-post'. :)

[snip]

You may want to look for past threads on clc++m. Look for those that
have "reiterated question" in the body. Basically you can figure out
whether a class has a member or not, but the mechanics rely on a
combination of obscure features.

> This compiles and words as desired on Comeau C++, but I'm wondering
if it is
> *legal* C++. I'm using it to create an unbounded (theoretically)
multi-method
> dispatcher, but I need to check where a type has that member
function. If not,
> then I need to revert (at compile-time) to using dynamic_cast.

Cool idea. I wanted to use members discovery for different purposes
(composite types as well), but in the end I decided to give up. Too
complicated.

Andrei


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