by pjmlp · 4mo ago · 0 comments
Meaning MSVC is aware of these cases, so the compiler has special cases for it.
[0]: https://github.com/microsoft/GSL/tree/99a29ce797c8337b8923f2...
> The GSL officially supports recent major versions of Visual Studio with both MSVC and LLVM, GCC, Clang, and XCode with Apple-Clang
This code boils down to static_cast<int>(some_double); so nothing fancy is going on here