ofBook icon indicating copy to clipboard operation
ofBook copied to clipboard

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

Open alptugan opened this issue 6 years ago • 2 comments

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();

alptugan avatar Jan 28 '19 11:01 alptugan

how about just using auto i think in this case - best is just make an edit and PR (can be done via GitHub itself)

elliotwoods avatar Jan 28 '19 12:01 elliotwoods

Sure @elliotwoods

alptugan avatar Jan 28 '19 17:01 alptugan