Boost logo

Boost Users :

Subject: Re: [Boost-users] [Spirit][karma] Generating Pascal string like output
From: TONGARI (tongari95_at_[hidden])
Date: 2012-01-23 06:05:48


2012/1/23 Olaf Meeuwissen <olaf.meeuwissen_at_[hidden]>

[...]

> The phoenix::size and inherited attribute where two helpful cluebats,
> though. With those (and fixing some of the stupidities in my original
> code) I've been able to come close but I always miss the first byte in
> the vector. Any ideas why and how to fix that?
>

That's why you need no_attribute[] if you cannot have karma::embed.

Get this:
http://boost.2283326.n4.nabble.com/attachment/3228512/1/no_attribute_directive.hpp

Used like:

    no_attribute[pascal_string_size_[ _1 = size (_val) ]]

HTH



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