I'm trying to use the code below for my node editor, I'm using Visual Studio 2019, it errors out whenever I try to insert a node object
edit: forgot that push_back is the correct function, my bad
std::vector<Node*> nodes;
void Example(){
Node* s = new Node();
nodes.insert(s);
}
the full error:
no instance of overloaded function "std::vector<_Ty, _Alloc>::insert
[with _Ty=Node *, _Alloc=std::allocator<Node *>]" matches the argument list