Marton Szasz created MINIFICPP-1252:
---------------------------------------
Summary: Introduce gsl-lite
Key: MINIFICPP-1252
URL: https://issues.apache.org/jira/browse/MINIFICPP-1252
Project: Apache NiFi MiNiFi C++
Issue Type: Improvement
Reporter: Marton Szasz
Assignee: Marton Szasz
Add gsl-lite to minifi c++ so that we can follow the best practices of the c++
core guidelines more closely.
Highlights:
- {{gsl::owner<T*>}}: annotate owner pointers
- {{gsl::not_null<T>}}: pointer wrapper class with {{!= nullptr}} invariant,
works on smart pointers
- {{gsl_Expects}}, {{gsl_Ensures}}: contract checking
- {{gsl::finally}}: execute callback at the end of the scope
- {{gsl::narrow<T>}}: checked narrowing conversion, fails on value change
- {{gsl::narrow_cast<T>}}: searchable annotation for narrowing conversions
--
This message was sent by Atlassian Jira
(v8.3.4#803005)