
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