Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] defining function call operators on expressions
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2010-03-02 02:24:28


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


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