This is a problem that seem to occur from time to time for me. The linter says that "namespace std has no member 'vector'" although the program compiles and runs fine. The only problem besides the annoyance is that I cannot use the ctrl-click feature on the GameObject-class. The linter (intellisense) does not find it. I have tried to run a clean solution and recompile, as well as delete the temp-folder and the hidden .vs- file to no avail.
#include "GameObject.h"
#include "GraphManager.h"
#include <vector>
class GameObjectManager
{
static std::vector<GameObject> myGameObjects;
void CheckCollisions();
static int myIDCount;
public:
GameObjectManager() = default;
static void Init();
static GameObject& GetGameObject(const int index) { return myGameObjects.at(index); };
static void Update(const float aDeltaTime);
static void Render();
};