Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2008-07-01 05:37:06


Hi:
Ok, how do I calculate the integers to use, is it binary--I assume soso
for example if I wanted bits 1 and 6 set the integer would be 65, if I'm
wrong please get me on the straight and narrow!
Sean.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Thorsten
Ottosen
Sent: 01 July 2008 10:26
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [BULK] Re: Using std::bitset
withboost::assign::assign_map_list_of

Sean Farrow skrev:
> Hi:
> I'll check this tommoro, if this works is the msb the first bit, i.e
> in the first example 1?
> So if I wanted to set a 6-bit bitset to 1 it would be 000001 I don't
> want to have to go through, printing all 63 values if I can help it!
>

then use ints instead of strings to construct the bitset.

-Thorsten
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3230 (20080701) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3230 (20080701) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net