Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Standard Co...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 9816 of 9909
Post > Topic >>

Re: Standard Conversions

by Pete Becker <pete@[EMAIL PROTECTED] > Jul 21, 2008 at 11:14 PM

On 2008-07-21 11:16:53 -0400, rkldabs@[EMAIL PROTECTED]
 said:

> Hi,
> 
> $10.3 sites an example as below. My doubt is on the terminology
> "Standard Conversion" that is mentioned in the comment against the
> statement "Base *bp = &d". When I refer the section $4 it states
> "Standard conversions are implicit conversions defined for built-in
> types".

Yes, and that's correct. But you also have to apply the second rule of
statutory construction: read on. In particular, 4.10 talks about
pointer conversions, including converting a pointer to derived into a
pointer to base.

-- 
  Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)



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




 6 Posts in Topic:
Standard Conversions
rkldabs@[EMAIL PROTECTED]  2008-07-21 15:16:53 
Re: Standard Conversions
Pete Becker <pete@[EMA  2008-07-21 23:14:51 
Re: Standard Conversions
alasham.said@[EMAIL PROTE  2008-07-21 23:58:13 
Re: Standard Conversions
Alberto Ganesh Barbati &l  2008-07-22 00:13:28 
Re: Standard Conversions
courpron@[EMAIL PROTECTED  2008-07-22 15:58:14 
Re: Standard Conversions
rkldabs@[EMAIL PROTECTED]  2008-07-22 15:58:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 12:59:28 CDT 2008.