[boost] Re: Spirit rules

2003-07-16 Thread Lucas Galfaso
replace
rule Id = int_p;
with
rulephrase_scanner_t Id = int_p;

Lucas/

Kai-Mikael Jää-Aro [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I obviously have not understood how spirit rules are supposed to work.
The
 simple program below fails to compile (spewing out 42 lines of error
messages).
 If I replace the application of 'Id' with int_p directly it works OK.
 What am I supposed to do to get the intended effect?


 #include iostream
 #include boost/spirit.hpp

 using namespace std;
 using namespace boost::spirit;

 int main(int *argc, char *argv[])
 {

int ID;

rule Id = int_p;

if (parse(argv[1],
 Id [assign(ID)],
 space_p).full)
  {
cout  Value =   ID  endl;
  }
else
  {
cout  Failed\n;
  }
 }


 ___
 Unsubscribe  other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost




___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


[boost] Big number

2003-05-14 Thread Lucas Galfaso
Hi everyone,
is anyone considering the addition of an arbitrary precision number library?

Lucas/



___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost