![]() So if your code makes assumptions about implementation-defined behavior, it might not be portable (a classic example is code which assumes that a pointer can be stored into an int or unsigned int. A wchar_t is 16 bits wide on Windows, but typically 32 bits on Linux. ![]() A long is typically 64 bits wide on 64-bit Linux, but only 32-bit on 64-bit Windows. For example, the size of common data types can (and will) vary across different platforms. The C++ standard leaves many things implementation-defined, which means that it's up to the individual platform and compiler how it should behave. behavior might be different on different platforms.However, there are a few caveats to be aware of: In theory, C++ source code can be compiled to run on any platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |