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


Question 1 Describe the following with respect to pointers in C language- Pointers and Arrays Usage of Pointers in functions Write programs in C to demonstrate the

Write a 3-4 page paper (350 words per page) in APA format detailing the development and use of C++ in academia and in industry. Explain the pros and cons of C++ as a programming la

Public derivation Public derivations are much more common than private derivations. In this situation: The private members inherited from the base class are inaccessible

Write a program called plus that will display asterisks in the shape of a plus sign which has the height and width specified by the user. You must only allow entry of an odd numb

create algorithm for doubly link list using c data structure

to count number of occurances

Question : (a) One of the most common sorting techniques we have in programming is the ‘Bubble Sort'. This technique will be used to sort an array of elements in ascending or

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues