1:16:45 people correctly pointed to the bug in the slide. It should have been *requires std::movable;* as it is a nested-requirement (7.5.7.5), *requires* is not optional, it's required (no pun intended) by the standard. The fact the most compilers don't notice that is not an excuse.
@USGrant21st Жыл бұрын
51:06 none of the current C++20 compilers accepts constrained std::unique_ptr as shown in example.
@Beatsbasteln Жыл бұрын
this talk is not very practical. i'm 22min in now and there was no example code to get an idea from yet
@SamWhitlock3 жыл бұрын
52:51 the other advantage is that constraint violation will fail much sooner than unconstrained template parameters. Prior to concepts, the reams of template errors I would often get would be because I used one type (e.g. forward_list) in a templated function that used std::sort (or some algo that required random access iteration), only to have it blow up with an error way down in the algorithm's code because some method wasn't available on the iterator type.
@thx9472 жыл бұрын
How can I get the slide? :D
@BoostCon2 жыл бұрын
The slides should be found on cppnow.org/history/2021/talks/
@thx9472 жыл бұрын
Thank you for the answer. The link seems to be broken. I can’t access. cppnow.digital-medium.co.uk/wp-content/uploads/2021/05/2021cppnow_learning_concepts.pdf
@poker532812 жыл бұрын
@@BoostCon They are note there. Seems no talk has slides yet.