You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this simple use of C++ contracts, I get the error: no type named 'fail_fast' in namespace 'gsl'. Will try block throw the fast_fail exception or some other exception?
I also replied to your issue on StackOverflow. I'll add the full response here that I gave on SO for completeness:
GSL_THROW_ON_CONTRACT_VIOLATION and gsl::fast_fail were removed from the Microsoft GSL starting with release v3.0.0. All contract violations result in a call to std::terminate unless you are building in kernel mode for MSVC where it invokes __fastfail.
There was a period of time where gsl::fast_fail was defined only when GSL_THROW_ON_CONTRACT_VIOLATION was defined, however that was identified in #267 and subsequently fixed in #268.
Context for the above point: there are comments on the OP suggesting that gsl::fast_fail was not being defined because GSL_THROW_ON_CONTRACT_VIOLATION was not defined in the correct place.
I posted it as question on SO, but no answer yet:
In this simple use of C++ contracts, I get the
error: no type named 'fail_fast' in namespace 'gsl'
. Will try block throw thefast_fail
exception or some other exception?The text was updated successfully, but these errors were encountered: