|
Boost : |
From: Eric Friedman (ebf_at_[hidden])
Date: 2003-12-23 18:24:00
Pavol Droba wrote:
[snip]
> 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
accordingly.
Eric
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk