Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-01-02 17:15:17


"John Maddock" <john_at_[hidden]> wrote in message
news:022b01c4f0e4$48c92cd0$f72f0d52_at_fuji...
| >> Any thoughts from the type_traits authors?
| >
| > I think decayed is an excellent trait. Your implementation should be
| > modified to also take care of functions converting into function pointers
| > though. It's a shame about the const qaulifier in your example make_pair
| > messing up the int[10] conversion to int*.
|
| I agree that it should work for function to function-pointer conversions as
| well.
|
| I've attached a slightly improved version that gets your non-const make_pair
| working, also uses remove_bounds rather than the range lib traits (just to
| keep things in the type_traits family).

I can't see your attachment; would you mind post it again?

Thanks

-Thorsten


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