[ 
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
>             Fix For: 0.8.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)

Reply via email to