Boost logo

Boost :

Subject: Re: [boost] Library proposal: binconst, constant of the binary form.
From: TaeKyeong Wang (bugiii_at_[hidden])
Date: 2009-01-15 16:24:24


template< int >
struct error_if_not;

template<>
struct error_if_not< true >
{
};

missing...

2009/1/15 David Abrahams <dave_at_[hidden]>:
>
> 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
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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