Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-02-07 06:44:52


"Andy Little" <andy_at_[hidden]> wrote

> I am wondering if it is possible to add some functionality so user can
tell
> if a type is in the database of registered types during compilation. It
may be
> there already of course.
>
> template <typename T>
> struct Func{
> //one possible use case
> typedef typename boost::mpl::eval_if<
> boost::is_typeof_registered<T>, // true if T is registered
> typeof_operation<T>, // use BOOST_TYPEOF
> try_something_else<T>
> >::type type;
>
> };
>
> Its not critical, but I thought it might be useful while libraries are
adding
> the typeof functionality. Also might help me in the "[typeof] gcc and
typeof in
> function return type" thread.

Doesn't the workaround I provided help?

Regards,
Arkadiy


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