Loading…
CppCon 2019 has ended
Back To Schedule
Friday, September 20 • 10:30 - 11:30
std::midpoint? How Hard Could it Be?

Log in to save this to your schedule, view media, leave feedback and see who's attending!

The standards committee adopted "P0811: Well-behaved interpolation for numbers and pointers" for C++20.
It includes a new library call `std::midpoint`.
The paper says "The simple problem of computing a value between two other values is surprisingly subtle in general."

In this talk, I will explore this simple call, provide a history of the development in libc++, and show some of the pitfalls.
Undefined behavior will rear its ugly head, along with numeric representations, and the arcane C promotion rules.

Along the way, we'll talk about testing, and why writing extensive tests helps everyone.

Speakers
avatar for Marshall Clow

Marshall Clow

Principal Engineer, CPPAlliance
Marshall has been programming professionally for 35 years. He is the author of Boost.Algorithm, and has been a contributor to Boost for more than 15 years. He is the chairman of the Library working group of the C++ standard committee. He is the lead developer for libc++, the C++ standard... Read More →


Friday September 20, 2019 10:30 - 11:30 MDT
Crest 3