[vsipl++] [patch] Fix png example failure, ICC fix
Stefan Seefeld
stefan at codesourcery.com
Thu Jul 20 17:07:52 UTC 2006
Jules Bergmann wrote:
> This patch should fix the build failure with the png example program.
>
> The problem was in the dispatch layer that re-evaluates a dense
> multi-dim expression as a 1-dim expression. It has to "re-dimension"
> the expression template tree. For Unary_expr_blocks, it was copying the
> operand block, but not the unary functor. For most unary_expr_blocks
> this is OK, the unary functor's default constructor is fine. However
> for unary_expr_blocks associated with user-defined elementwise functions
> (such as PNG's swap_read_green), this is not OK. The functor needs to
> be copied.
Aha ! Thanks for the quick fix !
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list