Error with tuple

I made a tuple with a string, array, and then an object. For some reason, it says that there's a syntax error involving one of my array brackets in the two lines with the tuple, this one ']'. Can anyone tell me why it would think there's an error?

Prototype:

Void AddArray(std::string name, int x[20000], VisibleGameObject* gameObject);

Declaration:

void GameObjectManager::AddArray(std::string name, int x[20000], VisibleGameObject* gameObject)
{
_gameObjects.insert(std::tuple<std::string, int [], VisibleGameObject*>(name, x[], gameObject));
}

Thanks for any help!
Last edited on
A tuple cannot have a native array as a member. If you must have an array as a member, use std::array or wrap your array in a struct.
Topic archived. No new replies allowed.