Boost logo

Boost Users :

From: Dave Jenkins (david_at_[hidden])
Date: 2008-05-30 12:07:46


> In particular, I'd like to know:
> 1) Is it possible to avoid my (ugly) use of "*optsref"?
> I would have liked to write something like
> sregex rx_opt = ( (s1= +_w) >> *_s >> "=>" >> *_s >> (s2= +_w) )
> [ (ref(result[ref(res_name)])) [s1] = s2 ];
> ie nest the maps directly. The way I tried, it would not compile.

It works if you change the parenthesis:

  [ (ref(result) [ref(res_name)]) [s1] = s2 ];

Regards,
Dave Jenkins


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