Boost logo

Boost :

Subject: [boost] Attibutes and Qi
From: Steffen.Roeber_at_[hidden]
Date: 2010-08-27 03:29:43

I used the classic spirit in the past. Now I want to migrate to Spirit 2.4
but I don't get the things together.Reading the different docus in the web
did not help. What I want to do at first is to parse a simple string into
a QString:
My pseudo code looks like:

   QString t;
   qi::rule<string::iterator, QString()> r1 = (+qi::char_)(qi::_val =
   qi::rule<string::iterator , void()> r = r1[ref(t) = _1];
   std::string temp("Hallo");
   phrase_parse(temp.begin(), temp.end(), r, qi::space);

But the compiler does no like this. Can anybody help me?

Hella Aglaia Mobile Vision GmbH
Steffen Roeber
Firmware & Tools
Treskowstr. 14, D-13089 Berlin
Amtsgericht Berlin-Charlottenburg HRB 66976 B
Geschäftsführer: Kay Talmi

Fon: +49 30 200 04 29? 412
Fax: +49 30 200 04 29? 109
Mail: Steffen.Roeber_at_[hidden]


Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe sowie
Vervielfältigung, Verwertung und Mitteilung seines Inhalts ist nur mit
unserer ausdrücklichen Genehmigung gestattet. Alle Rechte vorbehalten,
insbesondere für den Fall der Schutzrechtsanmeldung.
This document has to be treated confidentially. Its contents are not to be
passed on, duplicated, exploited or disclosed without our express
permission. All rights reserved, especially the right to apply for
protective rights.

Boost list run by bdawes at, gregod at, cpdaniel at, john at