Hi

I'm doing some work on the experimental dicom IO package and need to have
arrays of short ints (and others). That I can then assign to an octave_value
(to return it to . After trying a few things, I settled on
Array<octave_int<short> >   ( Array<short> cannot be assigned to an
octave_value as it's not in the list of octave_value constructors). That
compiles nicely, but when actually using the code from octave, I get an
error that the following function is not defined:

std::basic_ostream<char, std::char_traits<char> >& operator<<
(std::basic_ostream<char, std::char_traits<char> >& s,
Array<octave_int<short> > const& a)

(even though I'm not using it as far as I know). Just adding a dummy version
of that to my .cpp file clears the error. It seems to me therefore that this
template is defined but not instantiated anywhere, which sounds like a bug
to me.

To make things more complicated, if I use intNDArray< octave_int<short> >,
then there is no problem with operator<<. I didn't want to use intNDArray
as I thought (wrongly?) there might be some overhead, but also because it
will make my templating a bit easier.

Any advice?

Thanks

Kris



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to