hsf-training / hsf-training/cpluspluscourse
Add slide on `std::numbers`
Open
Nobody has claimed this yet.
stale
- Dominant language
- TeX
- Stars
- 313
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing slide sources and the C++20 material around unportable constants such as M_PI. Add a slide covering the header and std::numbers::pi, then check that the course materials build successfully and the new slide is included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100