microsoft / GSL

Guidelines Support Library
Other
6.13k stars 737 forks source link

solve span compile problem with gcc 5.5.0 #1052

Closed beinhaerter closed 2 years ago

beinhaerter commented 2 years ago

This solves a compile problem I encountered while using span on gcc 5.5.0. I know that platform is old but I have one embedded platform where I don't get a newer gcc. As this change does not break anything on newer gcc maybe it can just be merged?

dmitrykobets-msft commented 2 years ago

Hi @beinhaerter, thanks for the fix - I think it's fine to merge because it's so minimal and addresses a bug in GCC (albeit old). Can you rebase / merge on top of the latest main branch? I recently pushed some changes that should fix the failing CI_android run which is blocking the merge for this PR.