-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!
Description
Describe the bug
When just initializing an std::mdspan with dynamic extents multiple warnings (C5246) are produced during compilation.
Command-line test case
C:\Temp>type mdspan_testcase.cpp
#include <array>
#include <mdspan>
int main()
{
std::array test_data{0, 1, 2, 3, 4, 5};
std::mdspan<int, std::dextents<std::size_t, 2>> test_span(test_data.data(), 2, 3); // mdspan(329,54): warning C5246 + mdspan(124,50): warning C5246
return 0;
}
C:\Temp>cl /EHsc /Wall /WX /std:c++latest .\mdspan_testcase.cpp
[...]
multiple C5246 warnings occur.
Expected behavior
Compiles without warnings.
STL version
```
Microsoft Visual Studio Community 2022 (64-Bit) - Preview
Version 17.10.0 Preview 1.0
```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!