exercism / cpp

Exercism exercises in C++.
https://exercism.org/tracks/cpp
MIT License
256 stars 207 forks source link

making-the-grades: explain static_cast #678

Open ErikSchierboom opened 1 year ago

ErikSchierboom commented 1 year ago

I don't see any mention in the instructions on how to actually use static_cast. We don't necessarily need an example, but maybe mention that static_cast is a function (or at least can be called as a function)?

vaeng commented 1 year ago

static_cast can be found earlier in the tree under the numbers concept. Maybe a short refresher is better?

ErikSchierboom commented 1 year ago

Ah, I missed that. My solution there doesn't use static_cast, which might be why it didn't stick.