Article View: comp.std.c++
Article #827reference operators and reference conversion
From: Jim ADCOCK
Date: Wed, 13 Feb 1991 20:55
Date: Wed, 13 Feb 1991 20:55
15 lines
1036 bytes
1036 bytes
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." ????
Technical Details
Message-ID:
<70655@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!jimadShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.std.c++ Subject: reference operators and reference conversion Message-ID: <70655@microsoft.UUCP> Date: 13 Feb 91 20:55:48 GMT Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 15