Topic: reference operators and reference conversion


Author: jimad@microsoft.UUCP (Jim ADCOCK)
Date: 13 Feb 91 20:55:48 GMT
Raw View
ARM section 5.4 pg 69 states:

"An object may be explicitly converted to a reference type X& if a pointer to
that object may be explicitly converted to an X*.  Constructors or
conversion functions are not called as the result of a cast to a reference."

Is this perhaps an incomplete statement?  Shouldn't the correct statement be:

"An object may be explicitly converted to a reference type X& if a pointer to
that object may be explicitly converted to an X*.  Constructors or
conversion functions are not called as the result of a cast to a reference
except in the case of a user defined reference conversion function
matching the cast."

????