I've pasted some code below where I am trying to transform expressions of the 

(a op b op c)[i] 


(a[i] op b[i] op c[i])

I managed to get this to work for the simple case


but I'm curious about how to generalize this to include other operators 
(without explicitly handling them all).  Also, as written the transform doesn't 
recurse properly, and I'm having some trouble seeing how to correct this.

As I'm really just trying to get my mind around how proto works, any comments 
would be appreciated.

Nate Knight

Attachment: test2.cpp
Description: test2.cpp

proto mailing list

Reply via email to