fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.79k stars 2.5k forks source link

Warnings when compiling on windows: stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future #3896

Closed alexander-riss closed 8 months ago

alexander-riss commented 8 months ago

warning C4996: 'stdext::checked_array_iterator<T *>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.

Would probably make sense to add a gsl::span switch for windows while min cpp version is still below cpp20?

vitaut commented 8 months ago

Looks like a duplicate of #3540.