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

Log in to save this to your schedule 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

Engineer, C++ Alliance
Marshall has been programming professionally for 35 yearsHe 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
Crest 3

Attendees (160)




Twitter Feed