TheDiamondProject / Graphite

MIT License
16 stars 6 forks source link

Use `out_of_range` instead of `logic_error` where appropriate. #30

Closed tjhancocks closed 3 years ago

tjhancocks commented 3 years ago

There are two main motivations for this PR:

  1. GCC seems to have massive problems with the std::logic_error exception, despite its header file being included.
  2. Certain instances, we are technically going out of range and thus the out_of_range exception makes more sense.