Connecting Tech Pros Worldwide Help | Site Map

C++ Internals

Art
Guest
 
Posts: n/a
#1: Nov 15 '06
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

Victor Bazarov
Guest
 
Posts: n/a
#2: Nov 15 '06

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


RecycleYourAnimals
Guest
 
Posts: n/a
#3: Nov 15 '06

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
mlimber
Guest
 
Posts: n/a
#4: Nov 15 '06

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

Default User
Guest
 
Posts: n/a
#5: Nov 15 '06

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