microsoft / microsoft/vscode-cpptools
cannot deduced type for opeartor""
Open
Nobody has claimed this yet.
bug
Language Service
parser
Visual Studio
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
#include <iostream>
#include <string_view>
#include <string>
void test();
int main()
{
test();
}
void test()
{
using namespace std::string_view_literals;
auto str = "hello world for string_view"sv;
std::cout << str << std::endl;
using namespace std::string_literals;
auto str1 = "hello world for string"s;
std::cout << str1 << std::endl;
// cannot find user-define operator for str and str1
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided C++ snippet in the VS Code C/C++ extension and record the diagnostic produced for the string_view and string expressions. Inspect the extension's language-service handling of these expressions; done means the diagnostic is correctly reported for the configured C++ standard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100