help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] missing instantiation of operator<<(Array<octave_int<short>


From: Carnë Draug
Subject: Re: [OctDev] missing instantiation of operator<<(Array<octave_int<short> > ) and some other questions relating to optimal code
Date: Wed, 23 Nov 2011 22:55:42 +0000

On 23 November 2011 19:30, Kris Thielemans
<address@hidden> wrote:
> 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

Hi Kris

this seems to be an octave core issue, not in any of the packages of
octave-forge so I'm forwarding it to its mailing list.

Carnë


reply via email to

[Prev in Thread] Current Thread [Next in Thread]