Boost logo

Boost :

From: Lois Goldthwaite (loisg_at_[hidden])
Date: 2000-07-18 09:15:03


... I can see this snippet of code in my future ...

    template <typename T>
    class type_generator {
        // ... meta-magic happens here
        typedef RET type;
    };

    template <typename Type>
    class some_other_class {
        typedef typename type_generator<Type>::type return_type;
        // ....
    };

.... is it Friday yet???

Lois

Beman Dawes wrote:

> Jeremy wrote:
>
> >meta_if sounds good to me too.
>
> Also think about the name for the result. RET (short for RETURN) isn't at
> all clear or helpful. The result really isn't a returned value in the
> normal sense. The result is a type.
>
> So how about either type or meta_type? Just plain type sounds best to my
> inner ear.
>
> --Beman
>
> PS: The header we are talking about can be found at
> http://www.prakinf.tu-ilmenau.de/~czarn/meta/metactrl
>
> ------------------------------------------------------------------------
> Life's too short to send boring email. Let SuperSig come to the rescue.
> http://click.egroups.com/1/6809/4/_/9351/_/963924242/
> ------------------------------------------------------------------------


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