
2 Mar
2010
2 Mar
'10
7:24 a.m.
Manjunath Kudlur wrote:
Is there a way to define member functions in the wrapper class that are valid only for certain kinds of expressions? I experimented a little with boost::enable_if, but that didn't seem to work. Any thoughts?
Look at how the proto calculator works. You just need to compute () ariy using a transform adn then juse a static assert in the expression evaluation