🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jim ADCOCK Wed, 13 Feb 1991 20:55
reference operators and reference conversion
#827
Author: Jim ADCOCK
Date: Wed, 13 Feb 1991 20:55
15 lines
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."

????
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads