Youtube - CppCon 2015 Herb Sutter Writing Good C++14... By Default
CppCon 2015: Herb Sutter "Writing Good C++14... By Default"
https://www.youtube.com/watch?v=hEx5DNLWGgA
Transcrição
02:13

04:28

07:00

11:23

Tip
#best-practices Don´t use reinterpret_cast
Don´t use static_cast downcasts. Use dynamic_cast instead
Don't use const_cast to cast away a const
Don´t use C-style (T) expression cast thatr would performar a reinterpret_cast, static_cast, downcast or const_cast
Always initialize variable
Avoid acessing members of raw unions. Prefer variant instead.
Avoid reading from varars or passinf vararg arguments. Prefer variadic template paramenters instead
13:36

Rules
- Don´t use pointer arithmetic. Use array_view instead.
- Only index into arrays using constant expressions.
- Don´t use array-to-ponter decay
- Don´t use std::functions and types that are not bounds-checked.
16:51

18:55

20:18

21:53

22:10

22:52

23:50


24:59

26:58
#recommended Microsoft pre-fix static analyses tools, detects deterministic errors.
#recommended Microsof pre-fast
27:53

28:26

28:35

29:18

30:30

31:58
