If line 456 is this one:
ImageOutput *out = ImageOutput::create(filename);
You want to change that to
auto out = ImageOutput::create(filename);
For 2.0, you could also have said
std::unique_ptr<ImageOutput> out = ImageOutput::create(filename);
But the beauty of C++11 'auto' is that not only is it shorter, but also it will
work with both OIIO 1.8 (returning a raw pointer) or 2.0 (returning a
unique_ptr).
> On Dec 10, 2018, at 6:56 PM, Richard Shaw <[email protected]> wrote:
>
> On Mon, Dec 10, 2018 at 4:05 PM Larry Gritz <[email protected]
> <mailto:[email protected]>> wrote:
> I'm not done writing this document yet, but I have already finished the
> section that will give you the answer:
>
> https://github.com/OpenImageIO/oiio/wiki/OIIO-2.0-Porting-Guide
> <https://github.com/OpenImageIO/oiio/wiki/OIIO-2.0-Porting-Guide>
>
> Ok, based on that I did the following but I'm still seeing the error at line
> 456...
>
> --- a/intern/cycles/render/buffers.cpp
> +++ b/intern/cycles/render/buffers.cpp
> @@ -468,7 +468,10 @@ void DisplayBuffer::write(Device *device
>
> out->close();
>
> - delete out;
> +#if OIIO_VERSION < 10903
> + delete out;
> +#endif
> +
> }
>
> Thanks,
> Richard
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org