Skip to content

"Vectors of objects" section - ...erasing a pointer to an object in a vector... #302

Description

@alptugan

There is a typo (missing * operator) issue at the following code block;
vector<Particle >::iterator it = particlePointers.begin();

It should be replaced with the following;
vector<Particle * >::iterator it = particlePointers.begin();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions