When i throw this object,how several times will it be copied, C/C++ Programming

A: Depends. Might be "zero"

Objects which are thrown must have a publicly accessible copy-constructor. The compiler is permitted to generate code which copies the thrown object any number of times, by including zero. Though even if the compiler never in fact copies the thrown object, it has to make sure the exception class's copy constructor presents and is accessible.

 

Posted Date: 3/19/2013 8:53:10 AM | Location : United States







Related Discussions:- When i throw this object,how several times will it be copied, Assignment Help, Ask Question on When i throw this object,how several times will it be copied, Get Answer, Expert's Help, When i throw this object,how several times will it be copied Discussions

Write discussion on When i throw this object,how several times will it be copied
Your posts are moderated
Related Questions
can you help with the assignment, I don''t want to upload the assignment but want somebody to work with, do you do that?

Study the given class specification and answer the questions that follow: class Person { private:   string name;   int yrBorn;   int yrDied;   public:   Per

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Explain the terms- Substitutability and Extensibility Substitutability - The objects of a properly derived class can be safely and easily substituted for an object of its

When you are designing a generic class to have or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or

to count number of occurances

write an algorithm for linear search algorithm

Please give me a programming code of first & follow with c or c++ laqnguage .When anyone give me the programming code of first & follow please explain every lines with the help

Overall Program Objective: You will design and simulate a basic RISC processor.   You will create and encode an instruction set.  Your final task will be to "compile" a program

A: Use operator overloading to present a friend left-shift operator, operator #include class Fred { public: friend std::ostream& operator ... private: int i_; // onl