Let's consider that I have the following function:
SomeType createSomeType();
which may throwdepending on some reasons.
Then:
SomeType val = SomeType();
try
{
val = createSomeType();
}
catch (std::exception&)
{
}
If createSomeType()throws, can I always assume that the meaning is val unchanged ?
ereOn source
share