C++ Weekly - Ep 422 - Moving from C++20 to C++23

  Рет қаралды 8,572

C++ Weekly With Jason Turner

C++ Weekly With Jason Turner

2 ай бұрын

☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟
Upcoming Workshop: Understanding Object Lifetime, C++ On Sea, July 2, 2024
► cpponsea.uk/2024/sessions/und...
Upcoming Workshop: C++ Best Practices, NDC TechTown, Sept 9-10, 2024
► ndctechtown.com/workshops/c-b...
Episode details: github.com/lefticus/cpp_weekl...
T-SHIRTS AVAILABLE!
► The best C++ T-Shirts anywhere! my-store-d16a2f.creator-sprin...
WANT MORE JASON?
► My Training Classes: emptycrate.com/training.html
► Follow me on twitter: / lefticus
SUPPORT THE CHANNEL
► Patreon: / lefticus
► Github Sponsors: github.com/sponsors/lefticus
► Paypal Donation: www.paypal.com/donate/?hosted...
GET INVOLVED
► Video Idea List: github.com/lefticus/cpp_weekl...
JASON'S BOOKS
► C++23 Best Practices
Leanpub Ebook: leanpub.com/cpp23_best_practi...
► C++ Best Practices
Amazon Paperback: amzn.to/3wpAU3Z
Leanpub Ebook: leanpub.com/cppbestpractices
JASON'S PUZZLE BOOKS
► Object Lifetime Puzzlers Book 1
Amazon Paperback: amzn.to/3g6Ervj
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Object Lifetime Puzzlers Book 2
Amazon Paperback: amzn.to/3whdUDU
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Object Lifetime Puzzlers Book 3
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Copy and Reference Puzzlers Book 1
Amazon Paperback: amzn.to/3g7ZVb9
Leanpub Ebook: leanpub.com/copyandreferencep...
► Copy and Reference Puzzlers Book 2
Amazon Paperback: amzn.to/3X1LOIx
Leanpub Ebook: leanpub.com/copyandreferencep...
► Copy and Reference Puzzlers Book 3
Leanpub Ebook: leanpub.com/copyandreferencep...
► OpCode Puzzlers Book 1
Amazon Paperback: amzn.to/3KCNJg6
Leanpub Ebook: leanpub.com/opcodepuzzlers_book1
RECOMMENDED BOOKS
► Bjarne Stroustrup's A Tour of C++ (now with C++20/23!): amzn.to/3X4Wypr
AWESOME PROJECTS
► The C++ Starter Project - Gets you started with Best Practices Quickly - github.com/cpp-best-practices...
► C++ Best Practices Forkable Coding Standards - github.com/cpp-best-practices...
O'Reilly VIDEOS
► Inheritance and Polymorphism in C++ - www.oreilly.com/library/view/...
► Learning C++ Best Practices - www.oreilly.com/library/view/...

Пікірлер: 16
@alskidan
@alskidan Ай бұрын
Thanks God it’s not another April fools video 😊
@bobweiram6321
@bobweiram6321 Ай бұрын
I was hoping this ridiculous amount of complexity was a joke.
@gracicot42
@gracicot42 Ай бұрын
6:10 I think using the [[noreturn]] attribute can be used to convince the compiler it either always throw or abort. EDIT: Oh, I watched the rest of the video. Seems like it works 😅
@Minty_Meeo
@Minty_Meeo Ай бұрын
3:31 I never knew C++20 concepts could be used to constrain the type deduction of auto declarations like that. That's really neat!
@CyberDork34
@CyberDork34 Ай бұрын
I always forget that auto is basically just templates, so anything you can do in a template you should be able to do with auto
@yephick
@yephick Ай бұрын
8:59 - Soo... why do you struggle for THAT long before doing the right thing and firing up a debugger to figure out "what's wrong"?
@GeorgeTsiros
@GeorgeTsiros Ай бұрын
Debugger must be always the last resort. Right before you bring out the logic analyzer.
@yephick
@yephick Ай бұрын
@@GeorgeTsiros quite the opposite is true. Unless you know pretty much right away what is wrong you SHOULD first try a debugger to step through the code, instead of doing debugger's job(!) manually, which is what Jason was doing there with code navigation and mental up-keep of the program's state at various branch junctions
@cppweekly
@cppweekly Ай бұрын
@@yephick Because "I thought it would be easy and I could just read the code and fix it real quick"
@yephick
@yephick Ай бұрын
@@cppweekly thanks for the honest reply. And yeah, I'm guilty of doing that myself, of course. Still thought it is worth pointing out to bring to light the "right tool for the job" moto
@quarkdoe4380
@quarkdoe4380 Ай бұрын
When you wanted to switch from the С++14 at least to С++17 😢
@GeorgeTsiros
@GeorgeTsiros Ай бұрын
The minus sign has three different purposes. Number sign Unary negation Binary subtraction sooo how would you evaluate 4---2 ? 🙃
@adriancruz2822
@adriancruz2822 Ай бұрын
You could parse it as 4-(-(-2))). Thats what seems most intuitive to me.
@GeorgeTsiros
@GeorgeTsiros Ай бұрын
@@roh_son You mean 4---2 is an invalid arithmetic expression?
@michael.galassi
@michael.galassi Ай бұрын
@@GeorgeTsiros I think so, -- has higher precedence than - so this should be the same as (4 - -)-2, or am I too sleep deprived to miss the obvious? error: lvalue required as decrement operand const auto x = 4---2; ^ In a fixed font the '^' lines up under the first minus sign.
@GeorgeTsiros
@GeorgeTsiros Ай бұрын
@@michael.galassi The point is, C language expressions are not _arithmetic_ expressions. 4---2 is a valid _arithmetic_ expression, but an invalid expression in C. C does not accept arithmetic expressions.
C++ Weekly - Ep 423 - Complete Guide to Attributes Through C++23
13:13
C++ Weekly With Jason Turner
Рет қаралды 9 М.
C++ Weekly - Ep 430 - How Short String Optimizations Work
12:02
C++ Weekly With Jason Turner
Рет қаралды 11 М.
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 67 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 28 МЛН
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 882 М.
C++ Weekly - Ep 421 - You're Using optional, variant, pair, tuple, any, and expected Wrong!
10:34
The Pointer to Implementation (pImpl) idiom in C++
6:54
platis.solutions
Рет қаралды 10 М.
The Importance of Error Handling in C
8:18
Nir Lichtman
Рет қаралды 28 М.
TERMINAL GAME ENGINE! // Code Review
23:59
The Cherno
Рет қаралды 52 М.
C++ Weekly - Ep 125 - The Optimal Way To Return From A Function
13:10
C++ Weekly With Jason Turner
Рет қаралды 75 М.
C++ Weekly - Ep 406 - Why Avoid Pointer Arithmetic?
10:22
C++ Weekly With Jason Turner
Рет қаралды 13 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 715 М.
Apple iPhone 15 Pro Max With Smallrig Professional Photography kit #shorts
0:14
Обзор игрового компьютера Макса 2в1
23:34
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 22 МЛН
Fiber kablo
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН