Загрузка страницы

Arno Lepisk: Testing non-compiling code

Sometimes when writing library or utility code one creates constructs which simply shouldn't compile. But how does one test such code?
How can we catch when a change in code suddenly makes code that should not compile actually compile?
In this talk I will discuss some cases where this need comes up, and how to write tests so we know that non-compiling code stays non-compiling.
-
Link to the slides:
https://raw.githubusercontent.com/f00ale/presentations/master/Testing%20non-compiling%20code%20-%20Arno%20Lepisk%20-%20StockholmCpp%202022-02-24.pdf
-
A note from Arno:
I'd alike to address the comment I got on one of my sides regarding using class-function pointers. The commenter was totally correct and I do not really know what I had tested as the code on the slide didn't work. That's what you get when one makes last minute changes to ones slides I guess
I have left the wrong code in the slide, but added a comment about looking at the next example which method would work.

--
Event was recorded at the Atlas Copco office in Stockholm
https://www.atlascopco.com/sv-se

Meetup Event:
https://www.meetup.com/StockholmCpp/events/283856715/

Видео Arno Lepisk: Testing non-compiling code канала SwedenCpp
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 марта 2022 г. 16:18:26
00:20:11
Яндекс.Метрика