> Do the changes fulfil your expectations provided all tests pass?
No because you should catch by const& not by value. And is "assert(false)" really the only/best thing you can do? Is there any legitimate way the position can exceed the size of a long? If the answer is "yes," then you need to do something better.
> Do the changes fulfil your expectations provided all tests pass?
No because you should catch by const& not by value. And is "assert(false)" really the only/best thing you can do? Is there any legitimate way the position can exceed the size of a long? If the answer is "yes," then you need to do something better.