Boost logo

Boost :

From: Herb Sutter (hsutter_at_[hidden])
Date: 2002-02-21 10:05:55


> I feel impelled to INSIST that non-expressive type deductions should be
> abandoned. We need to figure out how to make it more expressive.

> I can think of syntactic addition to auto that would at least give it a
> little expressiveness.

> int can_you_guess_what_is_this_doing()
> {
> auto T a = foo();

If we adopt both auto and strict typeof, we can already do that:

    auto a = foo();
    typedef typeof(a) T;

Herb


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