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
I want to take 1.1 as input but when I am declaring it as float the output is given as 1.1000000


What are  Id e n t i f ie rs a n d C o n s t a n ts in C++? Id e n t i f ie r a n d C o n s t a n t : I d e n t i f ie r


Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

Objective:  Construct a C program that controls the LCD display, and is capable of displaying strings.  Add functions to the C program that allows more control over the display.

a c program to find the volume of sphere

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

A: It allows a program to reference an identifier in global scope which has been hidden by another identifier along with the same name in the local scope.