2015-02-22 21:48 GMT+02:00 Dirk Laurie <dirk.lau...@gmail.com>:

> The folllowing program pinpoints what I do not understand about
> the use of Value and Value_P.

I am beginning to think it may be a bug. Here is a minimal example
of the phenomenon that causes it.

~~~
#include <iostream>
using namespace std;

#include <Value.icc>

main() {
   const Value& a = FloatScalar(3.141592653589793,LOC).getref();
   cerr << "a[0] cell type = " << a.get_ravel(0).get_cell_type() << endl;
   Value_P ret(a.get_shape(), LOC);
   cerr << "a[0] cell type = " << a.get_ravel(0).get_cell_type() << endl;
}
~~~

Output:

~~~
a[0] cell type = 32
a[0] cell type = 1
~~~

Reply via email to