From: Nicolai S. <nic...@gm...> - 2013-02-27 13:15:27
|
Hi once again, reading the Blitz++ code, I concluded that using index placeholders as arguments to '_bz_ArrayExpr::operator()' simply isn't supported yet: my errors came from the compiler trying to instantiate the templated 'operator()' versions intended to be used with slices, not with IndexPlaceholders. I supplied _bz_ArrayExpr with 'operator()' overloads taking IndexPlaceholders (see attached diff). Fortunately, this was pretty straightforward since 'ArrayIndexMapping' has been implemented for general expressions already, not only 'blitz::Array's. The attached testcase (test.cc) compiles and runs fine. Sidenote: My compiler issued some warnings about operator precedence in indexexpr.h: + has higher precedence than '?:'. You'll find another diff addressing this issue attached. Best, Nicolai |