[SOLVED] Unable to build on linux/gcc after openimage refactor

After last OIIO refactor there’s an error when building on Linux with gcc.

/build/blender-2.8-git/src/blender/intern/cycles/render/image.cpp:153:34: error: could not convert ‘ccl::ImageLoader::osl_filepath()’ from ‘OpenImageIO_v2_1::ustring’ to 
  153 |     if (img->loader->osl_filepath()) {
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                  |
      |                                  OpenImageIO_v2_1::ustring

There should be a static_assert here in stead of simple if. :confused:

Thanks, this should be fixed by:

Works like a charm, thanks.