Typical C++, But Why? - Björn Fahller - Meeting C++ 2023

  Рет қаралды 3,567

Meeting Cpp

Meeting Cpp

Күн бұрын

Пікірлер: 8
@Carewolf
@Carewolf 9 ай бұрын
We do have compiler warnings for implicit casts from bool to int.
@martinlicht7132
@martinlicht7132 9 ай бұрын
The example on Slide 15 just shows the dangers of the implicit conversions introduced in C and adopted in C++. While it allows for very "concise" writing, ths s nt vr rdbl jst lk lvng t vwls in wrtng. Modern compilers should introduce flags optional warning about such accidental conversions even if they are perfectly valid C/C++.
@Carewolf
@Carewolf 9 ай бұрын
We might need an explicit "implicit" marker then.
@szaszm_
@szaszm_ 2 ай бұрын
-Wconversion
@varshneydevansh
@varshneydevansh 9 ай бұрын
noice
@nyyakko
@nyyakko 9 ай бұрын
@ 25:05 I'd argue even more, you **should** keep it very minimal. Restrain yourself and prefer to declare only the minimal set of functions that is needed to make your class actually do the job it is intended to do. Tony Eard actually has a pretty good talk on this which goes more in depth, its a talk about the somewhat controversial SOLID principles. kzbin.info/www/bejne/nZ28omCaq8yVr5Y
@nyyakko
@nyyakko 9 ай бұрын
anyways, very great talk! it was fun to watch.
@elvircrn
@elvircrn 2 ай бұрын
12:38 Isn't a much nicer solution to just use a struct with designated initializers - a poor man's keyword arguments?
Throwing Tools at Ranges - Tina Ulbrich - Meeting C++ 2023
56:07
Meeting Cpp
Рет қаралды 1,1 М.
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 15 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Serialization - A New Hope
50:53
Java
Рет қаралды 10 М.
Back to Basics: C++ Concurrency - David Olsen - CppCon 2023
1:00:58
Why Function Pointers are Awesome
11:11
Jacob Beningo
Рет қаралды 8 М.
Herb Sutter on Safety and Security in C++
30:31
Meeting Cpp
Рет қаралды 609
An interview with Titus Winters for Meeting C++ 2024
52:00
Meeting Cpp
Рет қаралды 423
C++ Should Be C++ - David Sankel - C++Now 2024
1:28:49
CppNow
Рет қаралды 20 М.
AMA with Herb Sutter - Meeting C++ live
1:25:45
Meeting Cpp
Рет қаралды 4,1 М.