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
This commit is contained in:
Anna Gringauze 2018-08-17 11:36:26 -07:00 committed by GitHub
parent 5016ce4a4d
commit 55aad0ab6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,16 @@ namespace gsl_helpers
// To make the transition: // To make the transition:
// //
// - replace all occurences of gsl::not_null in your code by sloppy_not_null // - 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<typename T>
// using NotNull = gsl::not_null<T>;
//
// 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 // - compile - compilation should be successful
// - replace some sloppy_not_nulls by gsl::not_null, fix compilation erros, // - replace some sloppy_not_nulls by gsl::not_null, fix compilation erros,
// redesign as needed, compile and test // redesign as needed, compile and test