cin/cout and other functins becomes ambiguous in Visual Studio 2019

Parag katoch 81 Reputation points
2020-12-23T12:19:19.327+00:00

Sometimes when I am coding in C++ I got errors that cin/cout and some others are ambiguous like the image below but my program has no problems at all. It gets build, compile and run without any problem.
To remove those errors I have to reopen my file. Is this a bug?

50766-screenshot-37.png

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes

Accepted answer
  1. WayneAKing 4,921 Reputation points
    2020-12-24T20:33:04.897+00:00

    To remove those errors I have to reopen my file.

    When this happens, have you tried rescanning the solution rather than closing
    and reopening the file?

    Rescan should be found under the Project menu, and also on the popup menu
    when you right-click on the source window in the IDE.

    Sometimes the database used by Intellisense doesn't get updated automatically
    and promptly after some changes in the source. A Rescan forces that to happen.

    • Wayne

0 additional answers

Sort by: Most helpful