473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C++ Internals

Art
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

Nov 15 '06 #1
4 1450
Art wrote:
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
Nov 15 '06 #2
And where can find FAQ 5.2??

Victor Bazarov wrote:
Art wrote:
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
Nov 15 '06 #3
RecycleYourAnimals wrote:
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

Nov 15 '06 #4
RecycleYourAnimals wrote:
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
Nov 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Barkholt | last post by:
Hi Is there any detailed documentation on the structure of Pythons internals, besides the source code itself? More specifically I am looking for information regarding the C parser, since I am...
5
by: ma740988 | last post by:
I sat through - what should have been a 10 minute discussion where at issue is the 'security of a class'. Truth is I was puzzled by the soruce, so much so that I lost track of the end result. In...
7
by: ej | last post by:
I'm trying to figure out how to get at some of the internal interpreter state for exception handlers and debug statements in general. I just read through Section 8 of the Python Tutorial. I see how...
2
by: Relaxin | last post by:
I'm a consultant for a large company and they are looking at a database to use. I made the suggestion about going with Postgresql. I told him about it's MVCC design, he liked that ideal, but...
4
by: Niklaus | last post by:
Hi, I would like to know more about casts.What exactly happens when casts are applied to a variable.I know that if an object of type int is applied an cast of float the result would be of type...
0
by: r_elbers | last post by:
Hello, Does anybody know about some docs about real internals off databinding ? Old DDX was clear enough about when to expect what event, but it isnt very clear when the first update of a...
1
by: Abhishek Srivastava | last post by:
Hello All, Which is a good book to learn asp.net internals? I have books on asp.net but they are more on the programming side. Is there something like Jeffery Richters book on .net really...
6
by: MattC | last post by:
I noticed when storing large amounts of information in the StateServer Service that this does not increase in size, the worker process itself seems to grow. I set up a test case to try and prove...
1
by: Jobs Gooogle | last post by:
Skills: .Net VC++ Java C++ Windows Internals Unix Internals Location: Bangalore, Hyderabad, Delhi (NCR), Chennai Experience: 3+ Yrs Hand-On Please forward your profiles to mailto:...
18
by: Guru Jois | last post by:
Hai, Can I get some docs or links to learn the C compiler internals from basic to advanced. It must contains good documentation of how compilers allocates memory to variables. Bye Guru Jois
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.