cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

Use of `noreturn` and `deprecated` attributes in C++

Open mohammadzainabbas opened this issue 2 years ago • 1 comments

Channel

C++Weekly

Topics

As mentioned here by Jason, it would be interesting to hear about the usage of noreturn and deprecated attributes (and if you have time, maybe cover most, if not all, attributes available in C++ language).

I would be interested to learn whether we can use noreturn attribute with lambdas, and also what would be a best practice here ?

Length

Ideally, all of it can be covered in less than 10 mins.

mohammadzainabbas avatar Aug 16 '22 03:08 mohammadzainabbas

https://compiler-explorer.com/z/KhhhTP87c

(but be sure to cover how that function can be rearranged to mitigate the question of initialization, also add in deprecated and C++23's attribute syntax for lambdas)

lefticus avatar May 31 '23 21:05 lefticus

Duplicate of #328

lefticus avatar Mar 24 '24 15:03 lefticus