From: JoeO on
{ question was about the validity of the code similar to

class T {} objA, objB;
T& objRef = (boolean expression) ? objA : objB;

next time please do provide quoting yourself. thanks. -mod }

Thank you both. I appear to have completely glossed right over
5.16.4:

"If the second and third operands are lvalues and have the same type,
the result is of that type and is an lvalue."


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]