Ambigious symbol std::string

Hi! Something went wrong and I got that warning. I would like to disable this inspection, but I don't know it's name. Could you please help me?

7 comments
Comment actions Permalink

Hello!

Sorry, it's not possible to hide errors. Could you please help us reproduce this so we could take a look?

0
Comment actions Permalink

Sure. The project is very big and commercial (I use Resharper C++ trial) and I don't know where to start, so what information you need?

0
Comment actions Permalink

If I press F12 I got this
The paths are
c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\xstring
c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\string
c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include\string

0
Comment actions Permalink

I searched in whole solution to find xstring include, but there is no one

0
Comment actions Permalink

I forgot to say that the compiler does not write errors and compiles as usual

0
Comment actions Permalink

Which R++ version are you using? Does the problem reproduce only in this file or in other files/projects/solutions too? Does it remain if you create a trivial file which uses std::string, e.g.

#include <string>
std::string str;

Did you do anything special before this problem occurred, for example updated ReSharper or Visual Studio?

0
Comment actions Permalink

JetBrains ReSharper Ultimate 2018.1.3 Build 112.0.20180626.160528
ReSharper C++ 2018.1.20180626.161937

Не знаю, в чём была проблема, но удалось починить. У меня было установлено 2 версии Visual Studio, и в папке
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include
так же был ещё один набор стандартных инклудов. И изначально я устанавливал Resharper в Community версию, потом пересел на Professional.
Я переименовал ...Studio\2017\Community\ в \Community1\, почистил кэш в Resharper, и всё заработало как надо

Спасибо за помощь!

0

Please sign in to leave a comment.