"no overloaded Function takes 0 Arguments" when trying to insert into Std:

Asked

Viewed 68 times

1

bunny is the standard class that has only the bunny(construtor) and ~bunny(desconstrutor) pattern.

int main()
    {
        vector<bunny> bunnies; // Este usa o construtor padrão.
        bunnies.push_back(); // ERRO! este não pode usar.

        system("Pause");

        return 0;
    }

Error C2661 'std::vector<bunny,std::allocator<_Ty>>::push_back': no overloaded function takes 0 arguments.

  • Did the answer solve your problem? Do you think you can accept it now? See [tour] to understand how it works. It would be helpful to indicate to everyone that the solution was useful and satisfactory for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).

1 answer

3

Browser other questions tagged

You are not signed in. Login or sign up in order to post.