hi, thanks, i give this a shot. I assumed that it is an intentional restriction... Thanks for helping, katrin
-------- Original-Nachricht -------- > Datum: Fri, 14 Jan 2011 01:21:11 +0100 > Von: "Michael Wolf" <michael.w...@db-w.com> > An: openexr-devel@nongnu.org, "katrin schmid" <kati...@gmx.de> > Betreff: Re: [Openexr-devel] list/vector auf array2d pixels > On Fri, 14 Jan 2011 01:14:41 +0100, katrin schmid <kati...@gmx.de> wrote: > > > hi, > > Hello Katrin, > > > i try reading an openExr file with arbitary numbers of channels and bit > depths. I was trying to store a list of Array2Ds like > > std::vector < Imf::Array2D<half> > hPixelList; or > > Imf::Array2D<half> px[5]; > > but cant make any of these work. Maybe i am missing something obvious > here? > > Will store thrm all to the same Array2d for now. > > I'm surprised that this would even compile. A std::vector copies the > elements and Imf::Array2D<> only has a private copy operator/constructor > (mainly > because one would create a second copy that uses just as much storage > memory). > > One way would be to store pointers to Imf::Array2D<> or wrap the storage > into a reference counted class (which is what I prefer to do). > > > Thanks for your help, > > katrin > > Well, I do hope that it helps. > > Cheers, > Mike > > -- > db&w Bornemann und Wolf GbR > Seyfferstr. 34 > 70197 Stuttgart > Deutschland > > michael.w...@db-w.com > > http://www.db-w.com > > tel: +49 (711) 664 525-3 > fax: +49 (711) 664 525-1 > mob: +49 (173) 66 37 652 > > icq: 252887990 > skype: lupus_lux > msn: michael.w...@db-w.com -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail _______________________________________________ Openexr-devel mailing list Openexr-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/openexr-devel