-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: work around msvc compiler bugs related to NTTP/array refs in par…
…am packs It's unclear what exactly is going on here. But use of a reference to bounded-array as a template parameter inside a parameter pack cause MSVC to emite useless compiler errors. On MSVC 19.16 it appears to eliminate these overloads from consideration without any diagnostic (like SFINAE). On more recent versions it provides the supremely useless "failed to specialize function template" without informing about *why* it is failing to do so. And some variations of these, applying decltype to NTTPs, even ICEs the compiler. Converting `const T (&)[N]` to `array_ref<T, N>` allows us to *not* have a reference-to-array expression inside the parameter pack and this appears to stop triggering all compiler bugs discovered thus far.
- Loading branch information
Showing
6 changed files
with
229 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.