
15 Jan
2010
15 Jan
'10
10:17 a.m.
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