[spirit] [qi] What's the differences between qi::uint_parser<int>() and qi::uint_parser<unsigned int>()?

classic Classic list List threaded Threaded
2 messages Options
Han
Reply | Threaded
Open this post in threaded view
|

[spirit] [qi] What's the differences between qi::uint_parser<int>() and qi::uint_parser<unsigned int>()?

Han
Both of them are the same as qi::uint_(parsing integers from 0 to
UINT_MAX). For qi::uint_parser<int>, the required maximum value of numeric
base type int is not used at all.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: [Bulk] [spirit] [qi] What's the differences between qi::uint_parser<int>() and qi::uint_parser<unsigned int>()?

Jeff Trull
On Thu, Dec 1, 2016 at 1:46 AM, Han Wang <[hidden email]> wrote:

> Both of them are the same as qi::uint_(parsing integers from 0 to
> UINT_MAX). For qi::uint_parser<int>, the required maximum value of numeric
> base type int is not used at all.
>

I'm not sure, but why use uint_parser<int> instead of int_parser<int>?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost