Boost logo

Boost :

From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2004-12-08 03:28:07


Hi,
I've checked the 'any' library, and I have a suggestion.
Wouldn't it be nicer if class any will have a member method like:

    template <typename T>
    T get() const;

or maybe even:

    template <typename T>
    const T& get() const;
    template <typename T>
    T& get();

In my humble opinion, that would look better of the current 'any_cast' way
of doing it.
Thanks,
Yuval Ronen


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