$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [Proto] Functions returning an expression
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-11-14 13:57:46
I have a DSL defined in proto.
What's the best wayt o build functions that returns an expression made
of this DSl elements.
Like let's say the vec_expr class support+-*/ operators
I want to write
??? f( vec_expr<W> const& a, vec_expr<Y> const& b)
{
return (a+b)/(a-b);
}
How can I easily (aka no nested make_expr call) build the return type ?
TIA
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35