microsoft / microsoft/vscode-cpptools
mdspan
@michelleangela arbeitet bereits daran.
Seit 07.8.2023.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Environment
- OS and Version: Windows 11
- VS Code Version: 1.82.0-insider
- C/C++ Extension Version: 1.16.3
Bug Summary and Steps to Reproduce
Bug Summary:
I am trying to use the mdspan in VSCode. I am using the parameters in Godbolt example and made a test. The code compiles without warnings or errors, however, VSCode intellisense shows an error. I have matched the compile flags with VScode c_cpp_properties.json, however, the error still persists.
Steps to reproduce:
- Go to 'https://github.com/danchitnis/mdspan-test'
- Close and open with VSCode
- modify the
c_cpp_properties.json, to point to yourg++compiler - See the highlighted errors in VSCode
Expected behavior: No highlighted errors
Configuration and Logs
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/include"
],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"cStandard": "c23",
"cppStandard": "c++23",
"intelliSenseMode": "windows-clang-x64",
"compilerPath": "c:/msys64/ucrt64/bin/g++.exe",
"compilerArgs": [
"-std=c++23"
]
}
],
"version": 4
}
Other Extensions
No response
Additional context
Errors are:
no instance of constructor "std::extents<IndexType, Extents...>::extents [with IndexType=unsigned long long, Extents=<18446744073709551615ULL, 18446744073709551615ULL>]" matches the argument listC/C++(289)
test.cpp(13, 45): argument types are: (int, int)
expression preceding parentheses of apparent call must have (pointer-to-) function typeC/C++(109)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.