Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

% operator in for loop (not module operator!)

I found some code written by a coworker by accident that compiles but we both do not know what it really means:

What does the % sign in following code do?

for (auto% layer : layers) { /* ...*/ }

This actually is a typo and was meant to be following:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

for (auto &layer : layers) { /* ...*/ }

>Solution :

% is the c++-cli Tracking Reference Operator

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading