This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

std::size_t vs. unsigned int


Hi.
 Is the relation between "std::size_t" and "unsigned int" in C++
architecture dependent ? I always thought that they cannot be
assigned each to other without static_cast , regardless of
architecture.

I succeded to assign each to other without warnings on gcc-4.0.0
(g++ -ansi -pedantic -Wall -Wno-long-long,  Pentium4 - 32bit , fedora core 4).
I remember that gxx-3.4. (dgpp) gave me errors in such case, a year ago
(gxx -ansi -pedantic -Wall).

Thank you.
 Dima.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]