federico-busato / Modern-CPP-Programming

Modern C++ Programming Course (C++03/11/14/17/20/23/26)

Home Page:https://federico-busato.github.io/Modern-CPP-Programming/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in 02.Basic_Concepts_I.pdf

LuccaT95 opened this issue · comments

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!

thanks again @LuccaT95! you are right!