
30 May
2008
30 May
'08
4:07 p.m.
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