Boost logo

Boost :

From: Eric Friedman (ebf_at_[hidden])
Date: 2003-12-23 18:24:00

Pavol Droba wrote:
> It is clear, that the second overload of get<> cannot handle any non-const type as a U parameter.
> I think, it would make sense to automaticaly add const specifier to the return value.
> So the get<> would change to:
> template<typename U, typename T1, typename T2, ..., typename TN>
> add_const<U>::type & get(const variant<T1, T2, ..., TN> & operand);
> Am I missing something?

No, I don't think so. I've changed the code, tests, and docs in CVS


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