From 55aad0ab6d99158ad7019b9a03db773eabd71c11 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Fri, 17 Aug 2018 11:36:26 -0700 Subject: [PATCH] Dev/annagrin/explicit notnull transition description (#722) * Added c++17 test configurations for clang5.0 and clang6.0 * Improved description how to make transition to explicit not_null constructor --- samples/gsl_transition | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samples/gsl_transition b/samples/gsl_transition index 5e713c4..3f5bf6c 100644 --- a/samples/gsl_transition +++ b/samples/gsl_transition @@ -40,6 +40,16 @@ namespace gsl_helpers // To make the transition: // // - replace all occurences of gsl::not_null in your code by sloppy_not_null +// variant: rename gsl::not_null by NotNull by including the following in your code, +// foe example, in a common include file: +// +// template +// using NotNull = gsl::not_null; +// +// compile using old version of GSL +// change GSL version and replace gsl::not_null by gsl_helpers::sloppy_not_null +// in the added code lines above +// // - compile - compilation should be successful // - replace some sloppy_not_nulls by gsl::not_null, fix compilation erros, // redesign as needed, compile and test