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]

Re: c++, gcc3.2.2 and bitwise operations


Hi Chris,

> How can I play with the guts of a variable one bit at a time in c++?

The C++ way is to use the #include <bitset>, as describe in Stroustrup's
C++PL (3rd) in section 17.5.3.

Sincerely,
--Eljay


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