|
Boost Users : |
Subject: [Boost-users] [karma] using attributes out of order
From: Cory Nelson (phrosty_at_[hidden])
Date: 2010-01-15 05:17:16
Hello,
I was fairly familiar with Spirit 1, but I'm now making my first foray
into Spirit 2. I'm trying to write something with karma's attribute
system. Say I've got a fusion adapted struct:
struct s { int foo; double bar; std::string baz; };
The Spirit docs give plenty of examples like:
int_ << double_ << string
But I can't find any docs showing how to output the members in a
different order, like:
double_ << string << int_
Is there a recommended way to achieve this? Thanks!
-- Cory Nelson
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