A
Andy Lomax
Is there any difference between:
foo A = B;
and
foo A;
A = B;
Specifically, I have a case where B is a function call which returns a
templated class. The first case gives a syntax error, but the second
case works. It appears to work because the assignment calls a type
conversion operator for the templated class.
Thanks -
AL
foo A = B;
and
foo A;
A = B;
Specifically, I have a case where B is a function call which returns a
templated class. The first case gives a syntax error, but the second
case works. It appears to work because the assignment calls a type
conversion operator for the templated class.
Thanks -
AL