From: John H. on
On Dec 7, 1:58 pm, ImpalerCore <jadil...(a)gmail.com> wrote:
> I have some macros that use the construct '~((-1) << (WIDTH))' to
> generate masks.

You might consider looking at std::bitset to see if it meets your
needs:
http://www.sgi.com/tech/stl/bitset.html


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]