-
Vadim Zeitlin authored
Use std::vector::at() to check the index and throw an exception if it is invalid instead of checking it manually using an assert: this is simpler and safer as there is no danger of forgetting the check or making a mistake in it. See #300.
b36944ce