Boost logo

Boost Users :

Subject: Re: [Boost-users] [Spirit] Qi int_parser rejecting a negative signed std::intmax_t
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2018-11-12 16:17:35


On Mon, Nov 12, 2018 at 10:34 AM Michael Powell <mwpowellhtx_at_[hidden]> wrote:
>
> Hello,
>
> qi::int_parser works fine for a positive signed hex radix integer, but
> is failing for a negative signed hex radix integer.

I've got some sample code, it builds, but I am receiving a seg fault.

http://coliru.stacked-crooked.com/a/ed4608c077bb3d69

> My integer type is std::intmax_t, which on this platform I think is long long.
>
> Is there an integer width constraint? And/or a signage problem?
>
> Do I need to enable BOOST_HAS_LONG_LONG? Or is that enabled by default?
>
> Cheers, thanks!
>
> Michael Powell


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