Closed flexferrum closed 5 years ago
Resolves #41
Currently, span.hpp includes stdexcept only if contract violation enabled. But throws std::out_of_range under the simple ! span_CONFIG( NO_EXCEPTIONS ) check. This PR fixes this issue and allows std exception when exceptions enabled.
span.hpp
stdexcept
std::out_of_range
! span_CONFIG( NO_EXCEPTIONS )
Resolves #41
Currently,
span.hpp
includesstdexcept
only if contract violation enabled. But throwsstd::out_of_range
under the simple! span_CONFIG( NO_EXCEPTIONS )
check. This PR fixes this issue and allows std exception when exceptions enabled.