Should i use int32, or i can use int? for crossplatform

Check the Portable C++ code section of the coding standard for type information.

“Use of C++'s int and unsigned int types whose size may vary across platforms is acceptable in code where the integer width is unimportant. Explicitly-sized types must still be used in serialized or replicated formats.”

4 Likes