28 May
2004
28 May
'04
11:38 p.m.
On Friday 28 May 2004 20:43, Caleb Epstein wrote:
typedef variant
elem_t; int main () { elem_t pi = M_PI; double d = get (pi);
If my understanding is correct, "get" expects the desired result type to be specified explicitly. In fact, how should the compiler deduce the return type of "get" otherwise? So you need to write: double d = get<double>(pi); Regards, Wolfgang Meyer