cpluspluscourse
cpluspluscourse copied to clipboard
Add slide on `std::numbers`
In C++20 we got the new header <numbers>
, which among other things defines std::numbers::pi
. This replaces the common use of unportable constants like M_PI
.