Hello All!
To check for return values from a function and setting error flags, i am currently using the following approach:
bool fine = true;
fine &= func1();
fine &= func2();
.. and so on.
if (!fine)
{
// error
}
Could anyone please let me know if there is a neater(better?) way to do the same?
Thanks in advance!