Boost logo

Boost :

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

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.
Yuval Ronen

Boost list run by bdawes at, gregod at, cpdaniel at, john at