petrovicstefanrs / 30_seconds_of_knowledge

Google Chrome Extension that lets you gain new developer skills, every time you open a New Tab.
https://30secondsofknowledge.com/
MIT License
942 stars 121 forks source link

Fixed bug and updated for loop to use range #75

Closed clasimoes closed 4 years ago

clasimoes commented 4 years ago

Vector iterator was declared without std:: namespace, which made compilation fail. I've updated this snippet to use a range for instead of iterators, which will make it compile and is also cleaner.

thamara commented 4 years ago

Actually, this has been fixed in the extension repo: https://github.com/Bhupesh-V/30-seconds-of-cpp/blob/master/algorithm/generate.md

Chalarangelo commented 4 years ago

It will be updated with the next release of the extension, then.