Connecting Tech Pros Worldwide Help | Site Map

C++ Internals

  #1  
Old November 15th, 2006, 03:45 PM
Art
Guest
 
Posts: n/a
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, 03:45 PM
Victor Bazarov
Guest
 
Posts: n/a

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, 03:55 PM
RecycleYourAnimals
Guest
 
Posts: n/a

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, 04:15 PM
mlimber
Guest
 
Posts: n/a

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, 04:55 PM
Default User
Guest
 
Posts: n/a

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
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle answers 1 May 10th, 2007 07:55 PM
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle answers 0 May 10th, 2007 07:45 PM
internals of typecasting Niklaus answers 4 November 14th, 2005 06:31 AM
Internals of an object ma740988 answers 5 July 22nd, 2005 08:05 PM