Is it possible to make this int const?
do you know any workaround to make the integer UNIT const?
It can't be declared const, because then it can't get its assignment inside the try block. And also it can't be declared inside the try-block, because then it's bound to the scope try defines.
UNIT = boost::lexical_cast<int>(argv);
cout << "Usage: input_file.bmp granularity(1..inf)" << endl;
Thank you in advance!