Boost logo

Boost :

Subject: Re: [boost] Library proposal: binconst, constant of the binary form.
From: David Abrahams (dave_at_[hidden])
Date: 2009-01-15 09:22:05


on Wed Jan 14 2009, "TaeKyeong Wang" <bugiii-AT-gmail.com> wrote:

> C++ programmers want to input a constant of the binary form, like
> following. But, this is illegal in C++ world.
>
> unsigned char value = 0b10001010;
>
> There are some solutions of this lack. But, I can't find the gratifying answer.

http://www.boost.org/doc/libs/1_37_0/libs/utility/utility.htm#BOOST_BINARY
??

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk