From 60beb7a363a922bc75f5a31ef9c69672fe6be8c7 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Fri, 18 Dec 2020 12:53:36 -0800 Subject: [PATCH] Fixed the default Accidentally flipped on the previous commit --- include/gsl/assert | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gsl/assert b/include/gsl/assert index 86851f4..f620637 100644 --- a/include/gsl/assert +++ b/include/gsl/assert @@ -126,10 +126,10 @@ private: }; auto static Default = contract_group( -#if defined GSL_TERMINATE_ON_CONTRACT_VIOLATION - &gsl::details::terminate -#else // if defined GSL_UNENFORCED_ON_CONTRACT_VIOLATION +#if defined GSL_UNENFORCED_ON_CONTRACT_VIOLATION // use default == null handler +#else // if defined GSL_TERMINATE_ON_CONTRACT_VIOLATION + &gsl::details::terminate #endif );