Boost logo

Boost :

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

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


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)
> 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


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