Community
Participate
Working Groups
Created attachment 287574 [details] eclipse parser log This is with MSVC 2019, Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30137 for x64 and Microsoft Visual C++ toolchain in a newly created project I have this simple test program: #include <map> #include <string> int main() { std::map<std::string, int> mymap; std::string field; int id; auto p = mymap.insert(std::make_pair(field, id)); // error 'Invalid arguments' auto mypair1 = std::make_pair(field,id); // fine mymap.insert(mypair1); //error 'Invalid arguments' std::pair<std::string, int> mypair2(field,id); // error 'Invalid arguments' mymap[field] = id; // fine return 0; } the errors are marked with comments. Of course, build project works fine.
Created attachment 287575 [details] test program
Created attachment 287580 [details] the test program preprocessed with cl.exe /P /C strangely, with the preprocessed source it works.
Created attachment 287581 [details] test program preprocessed with cl.exe /P /C /std:c++17 here it's reproduced. When the test program is preprocessed with /std:c++17, the preprocessed source gives the same error as the plain file.
Just upgraded Eclipse, the behaviour is the same with 10.5.0.
Hi Michael, Thanks for the report. C++ 17 is not fully supported yet. I have added Bug 490406, the umbrella bug for C++ 17 support.