$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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