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 2020/06/12 13:42:00 UTC

[jira] [Resolved] (MINIFICPP-1252) Introduce gsl-lite

     [ https://issues.apache.org/jira/browse/MINIFICPP-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marton Szasz resolved MINIFICPP-1252.
-------------------------------------
    Resolution: Fixed

> 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
>          Time Spent: 3h 10m
>  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)