8000 Update 06-Considering_Portability.md · misgeatgit/cppbestpractices@6e4bc45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e4bc45

Browse files
committed
Update 06-Considering_Portability.md
1 parent 8641c29 commit 6e4bc45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

06-Considering_Portability.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
Most portability issues that generate warnings are because we are not careful about our types. Standard library and arrays are indexed with `size_t`. Standard container sizes are reported in `size_t`. If you get the handling of `size_t` wrong, you can create subtle lurking 64-bit issues that arise only after you start to overflow the indexing of 32-bit integers. char vs unsigned char.
66

77
http://www.viva64.com/en/a/0010/
8+
9+
## Other Concerns
10+
11+
Most of the other concerns in this document ultimately come back to portability issues. [Avoid statics](07-Considering_Threadability.md#statics) is particularly of note.

0 commit comments

Comments
 (0)
0