microsoft / GSL

Guidelines Support Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gsl::narrow and NaN

andrewkcorcoran opened this issue · comments

Currently NaN values always cause gsl::narrow to throw (even when the cast is a no-op). This could be seen as non-intuitive to the user so we should probably explicitly document this in the header comments.