Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] applying proto to real problems
From: Eric Niebler (eric_at_[hidden])
Date: 2009-01-19 12:46:27


Michael Marcin wrote:
> I haven't used proto before and as I read the documentation everything
> makes sense but I can't figure out how to apply the information there to
> solve my problems.
>
> I think if I can figure out how to solve a simplified example from my
> actual problem I can figure out the rest.

<snip>

> What I want to be able to do is to make the typical dot product generate
> code that is equivalent to the specialized dot product when instantiated
> with T = fixed. This seems like something proto should handle easily
> from the description of the library but I just don't get proto yet.

So far, nothing you've shown has demonstrated a need for expression
templates or a DSEL. You don't appear to need Proto. An overloaded
dot_product() function that handles vec3<fixed> as you have it is
sufficient.

Am I missing something?

-- 
Eric Niebler
BoostPro Computing
www.boostpro.com

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