Boost logo

Boost Users :

Subject: Re: [Boost-users] Lexical_cast and hex number
From: Jeroen Habraken (vexocide_at_[hidden])
Date: 2010-12-04 06:38:42


Hi,

I've now added support for strings prefixed with an optional "0x" or
"0X" to the tag::hex, which can be found in the master branch on
github. More tags should be on the way.

On 3 December 2010 22:19, Claude <clros_at_[hidden]> wrote:
>
> Yes...but I use the "hex" tag.
> Whit this line:
>
>  construe_cast<uint16_t,construe::tag::hex>(myBuffer);
>
> I obtain this error:
>
> boost/construe/tag.hpp 120 error: static assertion failed: "sizeof(Target)
> == 0"

You're right, and this should be resolved in a future version, I'll
have to figure out how best to tackle it.

Jeroen


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