microsoft / GSL

Guidelines Support Library
Other
6.13k stars 737 forks source link

Remove null-check Expects assertion inside not_null::get #1067

Closed dmitrykobets-msft closed 1 year ago

dmitrykobets-msft commented 1 year ago

Guidelines issue 2006 removes the null check inside not_null::get, since the contained pointer is already guaranteed to be not-null upon construction.

Resolves #1051