federico-busato / Modern-CPP-Programming

Modern C++ Programming Course (C++03/11/14/17/20/23/26)
https://federico-busato.github.io/Modern-CPP-Programming/
11.91k stars 798 forks source link

Typo in 02.Basic_Concepts_I.pdf #65

Closed LuccaT95 closed 8 months ago

LuccaT95 commented 8 months ago

On p.39 in 02.Basic_Concepts_I.pdf there is the example

i = 0
a[i] = i++ // since C++17 a[1] = 1

I believe it should be ++i in the above? I tried with a being std::vector<int> in C++17 and C++20.

Thank you for writing this material!

federico-busato commented 8 months ago

thanks again @LuccaT95! you are right!