edrosten / libcvd

libcvd - efficient and easy to use C++ computer vision library.
Other
239 stars 103 forks source link

Fix up exceptions to derive from runtime_error #57

Closed dmccabe-snap closed 4 years ago

dmccabe-snap commented 4 years ago

Exceptions in libcvd do not derive from std::exception, and the CVD exception hierarchy is inconsistently used. This change makes the CVD exception hierarchy derive from std::runtime_error, and fixes up an exception that does not derive correctly.

This change also fixes up a couple of conformance issues necessary to use this correctly on modern compilers.