You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2021/01/21 15:50:01 UTC
[jira] [Updated] (MINIFICPP-1252) Introduce gsl-lite
[ https://issues.apache.org/jira/browse/MINIFICPP-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marton Szasz updated MINIFICPP-1252:
------------------------------------
Fix Version/s: (was: 0.8.0)
0.9.0
> 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
> Priority: Minor
> Fix For: 0.9.0
>
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> 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)