mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-18 03:34:35 +03:00
Add a new section on maintainability
This commit is contained in:
7
06-Considering_Portability.md
Normal file
7
06-Considering_Portability.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Considering Portability
|
||||
|
||||
## Know Your Types
|
||||
|
||||
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.
|
||||
|
||||
http://www.viva64.com/en/a/0010/
|
||||
Reference in New Issue
Block a user