What should qi :: uint_parser <int> () exactly parse?
From testing, I can get qi::uint_parser<int>()the same as qi::uint_. They analyze integers from 0to UINT_MAX.
I don't understand what it qi::uint_parserrequires to std::numeric_limits<T>::max()be valid for a numeric base type T. I'm not sure if I should assume that I qi::uint_parser<int>()should parse integers from 0to std::numeric_limits<int>::max()not std::numeric_limits<unsigned int>::max(). Or does this requirement have nothing to do with the parser range?
+4
1 answer
, boost:: spirit:: qi 0 std:: numeric_limits <int> :: max()?, , .
, , , ?
?
, . , , . , . .
, ++. unsigned scanf("%d") int std::istream:
. int , ifstream?
, , ++
- ,
- , .
: Spirit qi::int_, qi::uint_ . qi::[u]int_parser<>, " , ".
0