Boost logo

Boost Users :

Subject: [Boost-users] boost spirit qi/karma char parsing/generating
From: Ernest Zaslavsky (ernest.zaslavsky_at_[hidden])
Date: 2015-10-18 06:52:43


The question why does it treated as string character when my intention is to work with 8bit integral type? int8_t/uint8_t does not help either on most platforms it is just a define for signed/unsigned char. So, the broader question, how do you work with “byte” type when it is always treated as character? And the main question how do I force qi/karma to treat “char” as a number?

P.S. cast to short is an obvious solution but it is not elegant

[Read More]<http://feeds.feedburner.com/~r/sizmek-blog/~6/1>

[http://www.sizmek.com/Sizmek.png]<http://www.sizmek.com/>



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