3 ms·
Would you mind sharing a link to the ISO C++ guidelines you mention?
by Santosh83 5y ago
Would you mind sharing a link to the ISO C++ guidelines you mention?
- detaro 5y agopresumably https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
- qalmakka 5y agoThat's correct. Also see https://github.com/microsoft/GSL https://github.com/microsoft/GSL, which is a header-only C++ library that implements the Guidelines Support Library as specified by ISO C++. It's extremely useful (especially to get std::span<T> if you don't have C++20 support) because it provides several constructs to explicitly clarify the _intent_of your code, like `gsl::not_null<T>`, `gsl::narrow_cast<T>()` or `gsl::owner<T>`. `gsl::finally()` is also pretty useful.