Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2008-06-30 17:32:00


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!

Sean.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Thorsten
Ottosen
Sent: 30 June 2008 20:44
To: boost-users_at_[hidden]
Subject: [BULK] Re: [Boost-users] Using std::bitset with
boost::assign::assign_map_list_of
Importance: Low

Sean Farrow skrev:
> Hi:
> How can I assign a std::bitset to the first parameter (key) of a map
> using boost::assign::assign_map_list_of, do I have to construct a
> bitset or can I use one on the fly? In want to be able to say:
> Map =boost::assign::Assign_Map_list_of(bitset, int); How can I do this

> for multiple values?

Does

map = map_list_of( "01010", 1 )( "10010", 42 )

not work?

-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 3228 (20080630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
  

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3229 (20080630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3229 (20080630) __________

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