
11 Feb
2007
11 Feb
'07
12:11 a.m.
Frank Mori Hess wrote:
Yes, that'd be nice. I think a non-throwing partial specialization (or a simulated one for compilers that don't support it) of last_value would be good.
If I'm following, you're saying something like
last_value
would be like the current last_value<T> and last_value would be like last_optional<T>? It seems easier just to provide a stand-alone last_optional<T> since the implementation of last_value<T> is so trivial.
No, I meant a partial specialization for optional<T> directly, i.e.
last_value