c++, gcc3.2.2 and bitwise operations

John Love-Jensen eljay@adobe.com
Wed Feb 19 13:08:00 GMT 2003


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



More information about the Gcc-help mailing list