Connecting Tech Pros Worldwide Help | Site Map

C++ Internals

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 15th, 2006, 02:45 PM
Art
Guest
 
Posts: n/a
Default C++ Internals

Hi ,

I have a couple questions I was hoping to get experts answers on. Here
goes:

1)Consider two classes A and B. Consider 2 different implementations
of the constructor for A
i) Class A{
B b;
A(B b1):b(b1){}
}

ii) Class A{
B b;
A(B b1){ b(b1);}
}

question: Is there a difference between i) and ii), if so what is it?

2)why is vector<A &v; not allowed?

3)At compile time, how does a compiler know whether a "function call"
is going to be a dynamic call or a static call?

Any help is much appreciated.
Thanks


  #2  
Old November 15th, 2006, 02:45 PM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: C++ Internals

Art wrote:
Quote:
Hi ,
>
I have a couple questions I was hoping to get experts answers on. Here
goes:
>
[..]
Not surprisingly, these all are covered in the FAQ 5.2.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  #3  
Old November 15th, 2006, 02:55 PM
RecycleYourAnimals
Guest
 
Posts: n/a
Default Re: C++ Internals

And where can find FAQ 5.2??

Victor Bazarov wrote:
Quote:
Art wrote:
Quote:
Hi ,

I have a couple questions I was hoping to get experts answers on. Here
goes:

[..]
>
Not surprisingly, these all are covered in the FAQ 5.2.
>
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
  #4  
Old November 15th, 2006, 03:15 PM
mlimber
Guest
 
Posts: n/a
Default Re: C++ Internals

RecycleYourAnimals wrote:
Quote:
And where can find FAQ 5.2??
A link is posted regularly in this group; please search the archives.
You'll also want to note that FAQ 5.4 strongly suggests you don't
top-post, as you did here.

Cheers! --M

  #5  
Old November 15th, 2006, 03:55 PM
Default User
Guest
 
Posts: n/a
Default Re: C++ Internals

RecycleYourAnimals wrote:
Quote:
And where can find FAQ 5.2??
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or the group FAQ list:
<http://www.parashift.com/c++-faq-lite/how-to-post.html>


What happened when you searched for comp.lang.c++ FAQ in your favorite
search engine?





Brian
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.