S
Samuele Armondi
Hi everyone,
I vaguely recall someone mentioning that exceptions should be caught as
const in order to avoid unnecessary copying, i.e.
try
{
// blah
}
catch (const exception e)
{
//deal with it
}
Is this the case? If so, why does const stop the object from being copied?
Thanks in advance,
S. Armondi
I vaguely recall someone mentioning that exceptions should be caught as
const in order to avoid unnecessary copying, i.e.
try
{
// blah
}
catch (const exception e)
{
//deal with it
}
Is this the case? If so, why does const stop the object from being copied?
Thanks in advance,
S. Armondi